Function at 0x496670
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x67c878
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70df38]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 8]
xor ebx, ebx
cmp ecx, ebx
je 0x4966d7
lea eax, [esi + 4]
push eax
call fcn.0048ca90
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4966d4
add dword [eax + 4], 0xffffffff
cmp dword [eax + 4], ebx
jne 0x4966d4
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x4966d4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x496713
lea edx, [esi + 4]
push edx
call fcn.0048ca90
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x496710
add dword [eax + 4], 0xffffffff
cmp dword [eax + 4], ebx
jne 0x496710
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x496710
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x49674f
lea eax, [esi + 4]
push eax
call fcn.0048ca90
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x49674c
add dword [eax + 4], 0xffffffff
cmp dword [eax + 4], ebx
jne 0x49674c
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x49674c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0x1c]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], eax
jbe 0x4967f2
push ebp
lea ecx, [esi + 0x14]
call fcn.00495730
mov edi, dword [eax]
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x496777
add dword [edi + 4], 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x4c], ebx
call fcn.0048c840
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
mov byte [esp + 0x4c], 1
call fcn.0048ca90
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x48], bl
je 0x4967c8
add eax, 4
add dword [eax], 0xffffffff
jne 0x4967c8
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x14], ebx
or eax, 0xffffffff
cmp edi, ebx
mov dword [esp + 0x48], eax
je 0x4967e5
add dword [edi + 4], eax
cmp dword [edi + 4], ebx
jne 0x4967e5
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x496760
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
lea edi, [esi + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.004960b0
mov eax, dword [edi]
push eax
call fcn.00475da0
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov eax, dword [esi + 0x50]
add esp, 4
xor ebp, ebp
cmp eax, ebx
mov dword [esi + 0x3c], 1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esp + 0x18], eax
jbe 0x496883
push ebp
lea ecx, [esi + 0x48]
call fcn.00483bd0
mov edi, dword [eax]
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x496848
add dword [edi + 4], 1
lea eax, [esi + 4]
push eax
mov ecx, edi
mov dword [esp + 0x4c], 2
call fcn.0048ca90
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
or eax, 0xffffffff
add dword [edi + 4], eax
mov dword [esp + 0x48], eax
jne 0x49687a
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x496831
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x48]
lea edi, [esi + 0x48]
push eax
push ecx
mov ecx, edi
call fcn.004960b0
mov edx, dword [edi]
push edx
call fcn.00475da0
add esp, 4
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
cmp dword [esi + 0x54], ebx
je 0x4968d1
lea ecx, [ecx]
mov edi, dword [esi + 0x54]
cmp edi, ebx
mov ebp, dword [edi + 8]
je 0x4968ca
mov ecx, edi
call fcn.0048a3c0
push edi
call fcn.00475da0
add esp, 4
cmp ebp, ebx
mov dword [esi + 0x54], ebp
jne 0x4968b0
lea ecx, [esp + 0x20]
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
call fcn.00474730
mov ecx, dword [eax]
mov dword [esi + 0x60], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x20]
mov dword [esi + 0x64], edx
call fcn.00474710
mov ecx, dword [eax]
mov dword [esi + 0x68], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x74], edx
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x496927
add dword [eax + 4], 0xffffffff
jne 0x496927
mov ecx, dword [esi + 0x78]
cmp ecx, ebx
je 0x496927
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x78], ebx
cmp byte [esi + 0x7c], bl
je 0x496949
lea eax, [esi + 0x7d]
push eax
call fcn.004194b0
mov ecx, eax
call fcn.00483890
mov ecx, eax
call fcn.00476c10
mov byte [esi + 0x7c], bl
lea ecx, [esp + 0x20]
call fcn.00474730
mov ecx, dword [eax]
mov dword [esi + 0x7d], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x30]
mov dword [esi + 0x81], edx
call fcn.00474710
mov ecx, dword [eax]
mov dword [esi + 0x85], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x89], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x8d], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [esi + 0x91], edx
call fcn.004194b0
mov ecx, eax
call fcn.00483880
push esi
call fcn.004194b0
mov ecx, eax
call fcn.00483880
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret