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

Disassembly:
push 0xffffffffffffffff
push 0x100af330
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x100]
mov ebp, dword [esp + 0x104]
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x74]
cmp eax, esi
mov dword [esp + 0xf8], 1
mov dword [esp + 0x18], eax
je 0x1006415c
mov eax, dword [eax]
cmp eax, esi
je 0x1006415c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xf8], 2
mov ecx, dword [ebp]
push 0xffffffffffffffff
mov dword [esp + 0x28], ecx
lea eax, [ebp + 8]
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], esi
mov word [esp + 0xac], si
call fcn.10002570
mov byte [esp + 0xf8], 3
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x90], eax
lea esi, [edi + 0x60]
lea ebx, [esp + 0x24]
lea eax, [esp + 0x98]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x58], esi
call fcn.10068820
mov edx, dword [eax + 4]
mov ecx, dword [eax]
xor ebx, ebx
cmp byte [esp + 0x108], bl
mov dword [esp + 0x40], edx
jne 0x1006429c
cmp ecx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x70], eax
je 0x10064213
cmp ecx, esi
je 0x10064219
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x40], ecx
je 0x1006429c
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
cmp dword [esp + 0xb8], 8
mov dword [esp + 0x1c], 1
jb 0x1006424b
mov eax, dword [esp + 0xa4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
je 0x1006427a
mov eax, dword [eax]
cmp eax, ebx
je 0x1006427a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0xf8], bl
mov ecx, dword [esp + 0x10c]
cmp ecx, ebx
je 0x10064293
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
jmp 0x10064ab5
mov edi, dword [edi + 0x30]
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x100642b1
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea ecx, [edi + 0x30]
call eax
cmp edi, ebx
jne 0x1006432e
cmp dword [esp + 0xb8], 8
mov ecx, dword [esp + 0x14]
mov dword [ecx], ebx
mov dword [esp + 0x1c], 1
jb 0x100642dd
mov edx, dword [esp + 0xa4]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
je 0x1006430c
mov eax, dword [eax]
cmp eax, ebx
je 0x1006430c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0xf8], bl
mov ecx, dword [esp + 0x10c]
cmp ecx, ebx
je 0x10064325
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [esp + 0x14]
jmp 0x10064ab5
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0xdc], 7
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
push 1
lea edi, [esp + 0xc0]
mov byte [esp + 0xfc], 5
call fcn.10061900
test al, al
jne 0x10064410
mov edi, dword [esp + 0x14]
lea esi, [esp + 0xbc]
mov dword [edi], ebx
mov dword [esp + 0x1c], 1
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + 4]
add ecx, 0x30
call edx
cmp dword [esp + 0xb8], 8
jb 0x100643bf
mov eax, dword [esp + 0xa4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100643ee
mov eax, dword [eax]
cmp eax, ebx
je 0x100643ee
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0xf8], bl
mov ecx, dword [esp + 0x10c]
cmp ecx, ebx
je 0x10064ab3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
jmp 0x10064ab3
mov eax, dword [esp + 0xbc]
cmp eax, ebx
je 0x10064422
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x24]
mov word [esp + 0x44], bx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0xf8], 6
movzx eax, byte [ebp + 0x88]
lea edx, [esp + 0x74]
push edx
push eax
mov eax, dword [ebp + 0x4c]
lea ecx, [ebp + 0x6c]
push ecx
mov ecx, dword [ebp + 0x48]
lea edx, [ebp + 0x50]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0xe8]
push edx
lea edi, [esp + 0xb0]
lea ebx, [esp + 0x6c]
call fcn.100a0550
mov eax, dword [esp + 0x78]
xor ebx, ebx
cmp eax, ebx
je 0x1006449f
mov ecx, dword [esp + 0x7c]
sub ecx, eax
jne 0x100644ea
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x74]
mov dword [edi], ebx
mov dword [esp + 0x1c], 1
call fcn.10045ff0
lea esi, [esp + 0xbc]
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 4]
add ecx, 0x30
call eax
lea ecx, [esp + 0xa0]
call fcn.10002160
jmp 0x100643d9
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.10067430
test al, al
je 0x10064a4b
mov edi, dword [esp + 0x20]
mov ebp, 1
add dword [edi + 0x84], ebp
lea esi, [esp + 0x57]
mov ecx, 0x9c40
lea eax, [esp + 0xbc]
call fcn.1007ed50
test al, al
jne 0x1006453f
mov dl, byte [edi + 0x7c]
mov dword [esp + 0x1c], ebp
jmp 0x10064a53
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
push 0x40
lea esi, [esp + 0x60]
mov byte [esp + 0xfc], 7
call fcn.10068890
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x34]
push ecx
add ebp, 0x30
push 0xa
lea edx, [esp + 0xf0]
push edx
mov ecx, ebp
mov dword [esp + 0x58], ebp
call eax
test al, al
je 0x10064695
cmp dword [esp + 0x50], ebx
jbe 0x10064695
mov eax, 0x40
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], ebx
call fcn.10068da0
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x100645d2
mov ecx, dword [esp + 0x64]
sub ecx, eax
jne 0x100645dc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x60]
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push 0x40
push eax
mov ecx, ebp
call edx
test al, al
je 0x10064652
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
call fcn.10068da0
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], ebx
mov word [esp + 0x70], bx
mov dword [esp + 0x74], ebx
call fcn.10096b00
test al, al
je 0x10064652
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x70], ecx
jne 0x10064652
cmp word [esp + 0x6c], 0x416
jne 0x10064652
lea edx, [esp + 0x30]
push edx
lea edi, [esp + 0x50]
lea esi, [esp + 0x60]
mov dword [esp + 0x34], ebx
call fcn.100a33f0
add esp, 4
test al, al
jne 0x10064682
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0xa
lea edx, [esp + 0xf0]
push edx
mov ecx, ebp
call eax
test al, al
jne 0x100645a6
jmp 0x10064695
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10064695
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100646ed
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x5c]
mov dword [edi], ebx
mov dword [esp + 0x1c], 1
call fcn.10045ff0
lea esi, [esp + 0x74]
call fcn.10045ff0
lea esi, [esp + 0xbc]
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [esp + 0xa0]
call fcn.10002160
lea esi, [esp + 0x18]
call fcn.10006950
jmp 0x100643ee
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + 0x34]
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x10064704
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp byte [esp + 0x108], bl
mov byte [esp + 0xf8], 8
jne 0x100649ad
mov ebp, dword [esp + 0x10c]
cmp ebp, ebx
je 0x10064870
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
mov dword [esp + 0x38], ebp
call eax
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x24]
mov byte [esp + 0xf8], 9
call fcn.100683e0
mov esi, eax
lea eax, [esp + 0x38]
mov edi, esi
call fcn.10024e20
lea ebx, [esp + 0x34]
mov edi, ebp
call fcn.1006b1c0
lea edi, [esi + 4]
mov byte [esp + 0xf8], 0xa
call fcn.10024e20
mov byte [esp + 0xf8], 9
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10064789
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
test esi, esi
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
mov dword [eax], esi
je 0x100647a2
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov ebx, ebp
call fcn.1006ab90
mov ebx, dword [esp + 0x30]
mov edi, ebp
call fcn.1006b240
mov edi, dword [ebp]
mov edx, dword [edi + 0x4c]
mov ecx, ebp
call edx
push eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x48]
mov ecx, ebp
call edx
push eax
mov eax, dword [edi + 0x44]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x14]
mov dword [ecx], ebp
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
mov byte [esp + 0xf8], 8
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
mov dword [esp + 0x1c], 1
call eax
test esi, esi
mov byte [esp + 0xf8], 7
je 0x1006480f
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea esi, [esp + 0x5c]
call fcn.10045ff0
lea esi, [esp + 0x74]
call fcn.10045ff0
lea esi, [esp + 0xbc]
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa0]
call fcn.10002160
lea esi, [esp + 0x18]
call fcn.10006950
mov byte [esp + 0xf8], 0
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov eax, dword [esp + 0x14]
jmp 0x10064ab5
push 0x1e4
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
cmp esi, ebx
mov byte [esp + 0xf8], 0xb
je 0x100648b5
push ecx
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov eax, esp
mov dword [esp + 0x50], esp
mov dword [eax], ecx
je 0x100648a6
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x28]
push ecx
push esi
call fcn.1006a6d0
mov ebp, eax
jmp 0x100648b7
xor ebp, ebp
cmp ebp, ebx
mov byte [esp + 0xf8], 8
mov dword [esp + 0x3c], ebp
je 0x100648d0
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, ebp
call eax
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x24]
mov byte [esp + 0xf8], 0xc
call fcn.100683e0
mov edi, eax
lea eax, [esp + 0x3c]
call fcn.10024e20
mov ebx, dword [esp + 0x30]
mov edi, ebp
call fcn.1006b240
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x90]
mov esi, ebp
call fcn.1006b290
test ebp, ebp
mov edi, dword [esp + 0x14]
mov dword [edi], ebp
je 0x1006492d
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
test ebp, ebp
mov dword [esp + 0x1c], 1
mov byte [esp + 0xf8], 8
je 0x1006494b
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov byte [esp + 0xf8], 7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10064962
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea esi, [esp + 0x5c]
call fcn.10045ff0
lea esi, [esp + 0x74]
call fcn.10045ff0
lea esi, [esp + 0xbc]
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea ecx, [esp + 0xa0]
call fcn.10002160
lea esi, [esp + 0x18]
call fcn.10006950
jmp 0x10064ab3
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x24]
call fcn.100683e0
mov edi, dword [eax]
cmp edi, ebx
mov dword [esp + 0x3c], eax
je 0x100649ef
cmp esi, ebx
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], esi
je 0x100649d9
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov ebx, edi
call fcn.1006ab90
mov ebx, dword [esp + 0x30]
call fcn.1006b240
mov eax, dword [esp + 0x3c]
xor ebx, ebx
mov ecx, dword [eax]
cmp ecx, ebx
mov edi, dword [esp + 0x14]
mov dword [edi], ecx
je 0x10064a01
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
cmp esi, ebx
mov dword [esp + 0x1c], 1
mov byte [esp + 0xf8], 7
je 0x10064a1e
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea esi, [esp + 0x5c]
call fcn.10045ff0
lea esi, [esp + 0x74]
call fcn.10045ff0
lea esi, [esp + 0xbc]
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x10064a80
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x74]
mov dword [edi], ebx
call fcn.10045ff0
lea esi, [esp + 0xbc]
call fcn.1007eca0
mov byte [esp + 0xf8], 3
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x30]
add ecx, 0x30
mov edx, dword [eax + 4]
call edx
lea ecx, [esp + 0xa0]
call fcn.10002160
lea esi, [esp + 0x18]
call fcn.10006950
mov byte [esp + 0xf8], bl
mov ecx, dword [esp + 0x10c]
cmp ecx, ebx
je 0x10064ab3
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, edi
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100a4489
add esp, 0xe8
ret 0x10