Function at 0x462a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x468ab2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
lea eax, [ebp + 0x384]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CTakeMutex.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
call fcn.00440180
mov cl, byte [ebp + 0x38d]
mov esi, dword [esp + 0x108]
inc cl
mov dword [esp + 0x54], edi
mov byte [ebp + 0x38d], cl
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
sub esp, 8
fild qword [esp + 0x58]
mov bl, cl
mov dword [esp + 0x104], edi
mov byte [esp + 0x1b], bl
fmul dword [0x47d638]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
cmp eax, 0xff
mov dword [esp + 0x4c], eax
jle 0x462b5b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xfc], 0xffffffff
cmp eax, edi
mov dword [esp + 0x14], vtable.CTakeMutex.0
jle 0x462b52
lea ecx, [esp + 0x14]
call fcn.00440160
cmp dword [esp + 0x1c], edi
jg 0x462b43
mov ax, 0x3f
jmp 0x463307
mov ecx, dword [0x49bafc]
mov edx, dword [esi + 8]
mov dword [esp + 0x44], ecx
xor cl, cl
cmp eax, edi
mov byte [esp + 0x74], 0
mov byte [esp + 0x75], 1
mov byte [esp + 0x76], bl
mov byte [esp + 0x77], al
mov dword [esp + 0x20], edx
je 0x462c3a
mov eax, dword [esp + 0x20]
cmp eax, 0x7b
jbe 0x462b93
mov al, 0x7b
mov esi, dword [esp + 0x108]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x28], al
mov bl, cl
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x28]
mov esi, dword [esi + 4]
and ecx, 0xff
sub esi, edi
mov dword [esp + 0x48], ecx
add esi, edx
mov edx, ecx
inc bl
lea edi, [esp + 0x79]
shr ecx, 2
mov byte [esp + 0x78], bl
add al, 5
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x114]
push ecx
mov ecx, dword [esp + 0x108]
push edx
push str.BBP2_Command
push ecx
lea edx, [esp + 0x84]
push eax
push edx
mov ecx, ebp
call fcn.004611b0
mov esi, eax
test si, si
jne 0x462cbd
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
mov cl, bl
sub edi, eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x24], cl
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
and edx, 0xff
cmp edx, eax
jne 0x462b88
xor edi, edi
mov al, byte [esp + 0x110]
test al, al
jne 0x4632da
mov al, byte [esp + 0x114]
test al, al
jne 0x4632da
mov ecx, dword [esp + 0x44]
xor edi, edi
and ecx, 0xffff
mov ebx, 0x444
mov dword [esp + 0x28], ecx
mov eax, 0xafc800
cdq
idiv dword [ebp + 0x1fc]
mov edx, edi
and edx, 0xffff
sub ecx, edx
mov esi, ecx
cmp ecx, eax
jl 0x462c8b
mov esi, eax
mov ecx, dword [ebp + 0x36c]
mov eax, esi
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x462cf1
mov ecx, ebp
call fcn.00462350
add edi, esi
cmp di, word [esp + 0x44]
jae 0x462cf3
mov ecx, dword [esp + 0x28]
jmp 0x462c6d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xfc], 0xffffffff
test eax, eax
mov dword [esp + 0x14], vtable.CTakeMutex.0
jle 0x462ce9
lea ecx, [esp + 0x14]
call fcn.00440160
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x462cd8
mov ax, si
jmp 0x463307
xor ebx, ebx
test bx, bx
mov dword [esp + 0x20], ebx
je 0x462d30
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xfc], 0xffffffff
test eax, eax
mov dword [esp + 0x14], vtable.CTakeMutex.0
jle 0x462d28
lea ecx, [esp + 0x14]
call fcn.00440160
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x462d17
mov ax, bx
jmp 0x463307
push 0
lea ecx, [esp + 0x30]
call fcn.00463910
lea edx, [ebp + 0x358]
push 1
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 1
call fcn.004400e0
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov byte [esp + 0xfc], 2
je 0x462de3
mov ecx, dword [ebp + 0x374]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x2c]
push eax
call fcn.00463cb0
mov eax, dword [ebp + 0x380]
inc eax
mov dword [ebp + 0x380], eax
mov edx, dword [ebp + 0x378]
and edx, eax
mov dword [ebp + 0x380], edx
mov eax, dword [ebp + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp + 0x350]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.004400e0
mov edx, dword [ebp + 0x37c]
mov eax, dword [ebp + 0x380]
cmp edx, eax
jne 0x462dda
mov eax, dword [ebp + 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x58]
call fcn.00440120
lea ecx, [esp + 0x38]
mov byte [esp + 0xfc], 1
call fcn.00440120
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
cmp byte [eax + 2], cl
je 0x462f2d
xor edi, edi
mov ebx, 0x444
mov eax, 0xafc800
mov ecx, dword [esp + 0x28]
cdq
idiv dword [ebp + 0x1fc]
mov edx, edi
and edx, 0xffff
sub ecx, edx
mov esi, ecx
cmp ecx, eax
jl 0x462e2e
mov esi, eax
mov ecx, dword [ebp + 0x36c]
mov eax, esi
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x462e5c
mov ecx, ebp
call fcn.00462350
add edi, esi
cmp di, word [esp + 0x44]
jae 0x462e5e
jmp 0x462e0c
xor ebx, ebx
test bx, bx
mov dword [esp + 0x20], ebx
jne 0x463013
lea edx, [ebp + 0x358]
push 1
push edx
lea ecx, [esp + 0x40]
call fcn.004400e0
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov byte [esp + 0xfc], 3
je 0x462f0b
mov ecx, dword [ebp + 0x374]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x2c]
push eax
call fcn.00463cb0
mov eax, dword [ebp + 0x380]
inc eax
mov dword [ebp + 0x380], eax
mov edx, dword [ebp + 0x378]
and edx, eax
mov dword [ebp + 0x380], edx
mov eax, dword [ebp + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp + 0x350]
push 1
push ecx
lea ecx, [esp + 0x60]
call fcn.004400e0
mov edx, dword [ebp + 0x37c]
mov eax, dword [ebp + 0x380]
cmp edx, eax
jne 0x462f02
mov eax, dword [ebp + 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x58]
call fcn.00440120
lea ecx, [esp + 0x38]
mov byte [esp + 0xfc], 1
call fcn.00440120
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
cmp byte [eax + 2], cl
jne 0x462e05
mov dl, byte [esp + 0x34]
mov ebx, dword [esp + 0x10c]
sub dl, 5
lea edi, [eax + 5]
mov eax, dword [ebx + 4]
and edx, 0xff
test eax, eax
mov esi, edx
je 0x462f5d
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 4], 0
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebx + 8], esi
mov ecx, esi
mov esi, edi
mov dword [ebx + 4], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 3]
mov dl, byte [eax + 4]
mov byte [esp + 0x24], cl
mov esi, dword [esp + 0x24]
mov byte [esp + 0x24], dl
mov ecx, dword [esp + 0x24]
and esi, 0xff
and ecx, 0xff
mov dword [esp + 0x4c], esi
cmp ecx, esi
je 0x463267
mov dl, byte [eax + 4]
xor edi, edi
mov byte [esp + 0x48], dl
mov dword [esp + 0x24], 0x444
mov eax, 0xafc800
mov ecx, dword [esp + 0x28]
cdq
idiv dword [ebp + 0x1fc]
mov edx, edi
and edx, 0xffff
sub ecx, edx
mov esi, ecx
cmp ecx, eax
jl 0x462fe5
mov esi, eax
mov ecx, dword [ebp + 0x36c]
mov eax, esi
and eax, 0xffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x463058
mov ecx, ebp
call fcn.00462350
add edi, esi
cmp di, word [esp + 0x44]
jae 0x46305c
jmp 0x462fc3
lea ecx, [esp + 0x2c]
mov byte [esp + 0xfc], 0
call fcn.004043d0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xfc], 0xffffffff
test eax, eax
mov dword [esp + 0x14], vtable.CTakeMutex.0
jle 0x463050
lea ecx, [esp + 0x14]
call fcn.00440160
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x46303f
mov ax, bx
jmp 0x463307
xor eax, eax
jmp 0x463060
mov eax, dword [esp + 0x24]
mov edi, eax
test ax, ax
mov dword [esp + 0x20], edi
jne 0x4632d4
lea edx, [ebp + 0x358]
push 1
push edx
lea ecx, [esp + 0x60]
call fcn.004400e0
mov eax, dword [ebp + 0x380]
mov ecx, dword [ebp + 0x37c]
cmp ecx, eax
mov byte [esp + 0xfc], 4
je 0x463111
mov ecx, dword [ebp + 0x374]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x2c]
push eax
call fcn.00463cb0
mov edx, dword [ebp + 0x380]
inc edx
mov dword [ebp + 0x380], edx
mov eax, edx
mov edx, dword [ebp + 0x378]
and edx, eax
mov dword [ebp + 0x380], edx
mov eax, dword [ebp + 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp + 0x350]
push 1
push ecx
lea ecx, [esp + 0x70]
call fcn.004400e0
mov edx, dword [ebp + 0x37c]
mov eax, dword [ebp + 0x380]
cmp edx, eax
jne 0x463108
mov eax, dword [ebp + 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x68]
call fcn.00440120
lea ecx, [esp + 0x58]
mov byte [esp + 0xfc], 1
call fcn.00440120
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
cmp byte [eax + 2], cl
jne 0x4632c6
mov cl, byte [eax + 4]
mov edx, dword [esp + 0x48]
mov byte [esp + 0x64], cl
and edx, 0xff
mov esi, dword [esp + 0x64]
inc edx
and esi, 0xff
cmp esi, edx
jg 0x4632cd
mov byte [esp + 0x50], cl
mov ecx, dword [esp + 0x50]
and ecx, 0xff
cmp ecx, edx
jl 0x463256
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.DynamicScopeBuffer_unsigned_char_.0
call fcn.00463d00
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x3c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [esp + 0xfc], 5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x34]
mov eax, dword [ebx + 8]
sub cl, 5
and ecx, 0xff
add ecx, eax
mov eax, dword [ebx + 4]
test eax, eax
mov esi, ecx
je 0x4631d7
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 4], 0
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x44]
mov dword [ebx + 8], esi
mov esi, dword [esp + 0x40]
mov edx, ecx
mov edi, eax
mov dword [ebx + 4], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov byte [esp + 0xfc], 1
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x34]
mov edi, dword [ebx + 4]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
sub cl, 5
add edi, edx
and ecx, 0xff
lea esi, [eax + 5]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], vtable.DynamicScopeBuffer_unsigned_char_.0
test eax, eax
je 0x463252
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
xor ecx, ecx
mov cl, byte [eax + 4]
cmp ecx, edx
jne 0x462fb2
mov edi, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x2c], vtable.._AV__DynamicScopeBuffer__E__.0
je 0x463288
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], vtable.CTakeMutex.0
test eax, eax
jle 0x4632c1
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
dec edx
test eax, eax
mov dword [esp + 0x1c], edx
je 0x4632b9
mov edx, dword [eax + 4]
push edx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4632a2
mov ax, di
jmp 0x463307
mov edi, 0x403
jmp 0x46326b
mov edi, 0x40a
jmp 0x46326b
mov eax, dword [esp + 0x30]
jmp 0x46326b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xfc], 0xffffffff
cmp eax, edi
mov dword [esp + 0x14], vtable.CTakeMutex.0
jle 0x463304
lea ecx, [esp + 0x14]
call fcn.00440160
cmp dword [esp + 0x1c], edi
jg 0x4632f5
xor ax, ax
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf0
ret 0x14