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

Disassembly:
push 0xffffffffffffffff
push 0x551878
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ba870]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov ebp, dword [0x56011c]
test ecx, ecx
jne 0x4975c8
cmp dword [esp + 0x80], 0
jne 0x4975c8
mov ebx, dword [esp + 0x78]
test ebx, ebx
jle 0x4975ce
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebp
mov eax, dword [esp + 0x28]
cdq
idiv ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x4975cc
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x4975f2
test ecx, ecx
jle 0x4975f4
mov eax, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
push 0x18
push eax
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
cdq
idiv ecx
mov dword [esp + 0x78], eax
mov ebx, eax
test ecx, ecx
je 0x497701
cmp dword [esp + 0x88], 0
je 0x4977d6
mov ecx, esi
call fcn.005363d0
test eax, eax
jne 0x4976aa
cmp dword [0x5c4e7c], eax
je 0x4976aa
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x497630
mov eax, 0xff00
test edi, edi
je 0x497637
mov edi, dword [edi + 4]
push eax
push edi
call fcn.004937c0
xor ebp, ebp
add esp, 8
cmp eax, ebp
je 0x497701
mov edi, 0x562760
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebp
call fcn.0042a81c
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
push ebp
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ebx
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00497550
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x14], edi
call fcn.00401f08
jmp 0x4978a0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebp
mov eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x7c]
mov ebp, eax
test edx, edx
jne 0x497701
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f55d
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push esi
push ebp
push edi
mov dword [esp + 0x7c], esi
call fcn.00493520
test eax, eax
jne 0x497708
push esi
call fcn.0041f568
add esp, 4
xor eax, eax
jmp 0x4978a2
xor eax, eax
cmp ebp, ebx
sete al
xor esi, esi
xor ebx, ebx
cmp dword [esp + 0x78], esi
mov dword [esp + 0x88], eax
jle 0x49779d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x497738
cmp dword [esp + 0x88], 0
jne 0x497738
cmp dword [eax + esi*4], 0
je 0x497796
cmp ebx, ebp
jge 0x497796
test eax, eax
je 0x497745
mov edi, dword [eax + esi*4]
jmp 0x497747
mov edi, esi
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x40]
call fcn.004949e0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x7c], 1
call fcn.00496c70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.00494aa0
inc ebx
inc esi
cmp esi, dword [esp + 0x78]
jl 0x497720
xor esi, esi
test ebp, ebp
jle 0x4977bf
mov edi, dword [0x5600a0]
lea esp, [esp]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + esi*4]
push edx
call edi
inc esi
cmp esi, ebp
jl 0x4977b0
mov eax, dword [esp + 0x70]
push eax
call fcn.0041f568
add esp, 4
mov eax, 1
jmp 0x4978a2
lea ecx, [esp + 0x1c]
call fcn.004296d6
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 1
push 0
push 0x19
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 2
call fcn.00429a8d
test eax, eax
jne 0x49781f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.00429bbc
xor eax, eax
jmp 0x4978a2
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x497849
sub esp, 8
mov eax, esp
mov dword [esp + 0x80], esp
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00493780
add esp, 0xc
test edi, edi
je 0x497850
mov edi, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
call fcn.00429116
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00401e2d
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00496fd0
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
call fcn.00429bbc
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c