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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x566538
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
mov edi, ecx
push ebp
call fcn.005141b4
mov esi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c]
cmp eax, 2
jne 0x49698e
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, edi
call fcn.005141ba
mov ebp, dword [eax]
mov edx, dword [esi]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x74], 0
call dword [edx + 4]
mov eax, dword [eax]
push ebp
push eax
call dword [0x571278]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005132cc
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebp
call fcn.005132cc
test bl, bl
je 0x496a0d
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x70], 1
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
push ecx
mov ecx, edi
call fcn.005141a8
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebp
call fcn.005132cc
jmp 0x496a0f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
cmp eax, 1
jne 0x496a09
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, edi
call fcn.004970b0
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, edi
mov dword [esp + 0x78], 2
call fcn.005141ba
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
push eax
call dword [0x571278]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.005132cc
test bl, bl
je 0x4969f8
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push ebp
mov ecx, edi
call fcn.005141a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call fcn.005132cc
xor ebx, ebx
jmp 0x496a13
xor ebx, ebx
mov ebp, dword [esp + 0x78]
push 0x20
push ebp
mov ecx, edi
call fcn.005141ae
test al, 0x20
jne 0x496a5f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x28]
cmp dword [eax + 8], ebx
jle 0x496c00
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x40]
push eax
push ebx
push 0x110d
push ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], 0x40
mov dword [esp + 0x70], 1
call dword [0x5713f0]
jmp 0x496c00
mov dword [esp + 0x2c], 0x580100
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x70], 3
mov dword [esp + 0x18], 0x572ee0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x70], 4
call dword [edx + 0x28]
mov esi, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov eax, dword [esi + 8]
push eax
call fcn.004c3470
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, eax
dec eax
test edx, edx
je 0x496ad3
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x496ac6
mov eax, dword [edi + 0x20]
push ebp
push 4
push 0x110a
push eax
call dword [0x5713f0]
mov ebp, eax
cmp ebp, ebx
je 0x496b43
push ebp
mov ecx, edi
call fcn.005141b4
mov edx, dword [esp + 0x20]
xor esi, esi
cmp edx, ebx
jle 0x496b11
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx]
je 0x496c15
inc esi
add ecx, 4
cmp esi, edx
jl 0x496b01
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x34]
call fcn.004c3470
mov ecx, dword [esp + 0x30]
mov dword [ecx + esi*4], ebp
mov edx, dword [edi + 0x20]
push ebp
push 1
push 0x110a
push edx
call dword [0x5713f0]
mov ebp, eax
cmp ebp, ebx
jne 0x496aeb
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, ebx
jle 0x496b6e
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + esi*4]
push eax
push ebx
push 0x1101
push ecx
call dword [0x5713f0]
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x496b4d
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
call fcn.004c3470
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebx
jle 0x496ba1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov eax, dword [edx + esi*4]
push eax
push ecx
mov ecx, edi
call fcn.00496da0
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x496b84
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
call fcn.004c3470
mov edx, dword [esp + 0x78]
mov ecx, edi
push edx
call fcn.00497450
mov dword [esp + 0x18], 0x572ee0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 5
cmp eax, ebx
je 0x496bd7
push eax
call fcn.005133ec
add esp, 4
mov dword [esp + 0x18], 0x571ce4
mov dword [esp + 0x2c], 0x580100
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], 6
cmp eax, ebx
je 0x496c00
push eax
call fcn.005133ec
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
push ebp
mov ecx, edi
call fcn.004968c0
mov eax, dword [esp + 0x20]
sub eax, esi
dec eax
je 0x496c44
lea ecx, [eax*4]
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [eax + esi*4 + 4]
lea eax, [eax + esi*4]
push edx
push eax
call dword [0x571284]
add esp, 0xc
dec dword [esp + 0x20]
jmp 0x496b2b