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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x730], 0
push edi
mov edi, dword [ebx]
mov dword [esp + 0xc], edi
jle 0x550309
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
push 0x40
jne 0x54fa45
push eax
push ebx
call fcn.004e29c0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
jmp 0x54fa54
push ebx
push eax
call fcn.004e29c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push 0x40
push ecx
push edx
call fcn.004e29c0
imul edi, edi, 0xb4
imul ebp, ebp, 0x98
mov eax, dword [esi + 0x704]
mov dword [esi + 0x744], 1
mov dword [edi + eax], 1
mov ecx, dword [esi + 0x704]
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 0x58]
mov dword [edi + ecx + 0x40], edx
mov ecx, dword [esi + 0x72c]
mov dword [ecx + ebp + 0x2c], eax
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 4], eax
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 8], eax
mov edx, dword [esi + 0x704]
mov eax, dword [esi + 0x730]
mov dword [edi + edx + 0x88], eax
mov ecx, dword [esi + 0x730]
mov edx, dword [esi + 0x72c]
imul ecx, ecx, 0x98
mov ecx, dword [ecx + edx + 0x4c]
mov eax, dword [esi + 0x704]
mov dword [edi + eax + 0x9c], ecx
mov edx, dword [esi + 0x704]
mov ecx, dword [esp + 0x5c]
or dword [edi + edx + 0x8c], ecx
mov ecx, dword [esp + 0x28]
lea eax, [edi + edx + 0x8c]
mov edx, dword [esi + 0x704]
or dword [edi + edx + 0x90], 2
lea eax, [edi + edx + 0x90]
mov eax, dword [esi + 0x704]
mov dword [edi + eax + 0xa8], ecx
mov edx, dword [esi + 0x730]
mov eax, dword [esi + 0x72c]
imul edx, edx, 0x98
add esp, 0x18
test dword [edx + eax + 0x28], 0x300
je 0x54fb64
mov ecx, dword [esi + 0x704]
or dword [edi + ecx + 0x8c], 8
mov edx, dword [esi + 0x704]
lea eax, [edi + ecx + 0x8c]
xor ecx, ecx
mov dword [edi + edx], ecx
jmp 0x54fb66
xor ecx, ecx
mov eax, dword [esi + 0x730]
mov edx, dword [esi + 0x72c]
imul eax, eax, 0x98
add eax, edx
test dword [eax + 0x28], 0x380
je 0x54fb9d
cmp dword [eax + 0x38], ecx
jne 0x54fb9d
mov eax, dword [esi + 0x704]
or dword [edi + eax + 0x8c], 0x10
lea eax, [edi + eax + 0x8c]
mov edx, dword [esi + 0x730]
mov eax, dword [esi + 0x72c]
imul edx, edx, 0x98
mov eax, dword [edx + eax + 0x28]
test eax, 0x20380
je 0x54fbcc
and eax, 0x400
neg eax
sbb eax, eax
and eax, 0x100f0
mov ebp, eax
jmp 0x54fc26
mov ecx, dword [esi + 0x704]
mov edx, dword [edi + ecx + 8]
lea eax, [edi + ecx]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edx*4]
mov ecx, dword [ecx + 0x14]
mov edx, dword [esi + 0x2b38]
imul ecx, ecx, 0x58
mov ebp, dword [edx + ecx + 0x18]
add edx, ecx
mov eax, 0x51eb851f
mul dword [edx + 0x28]
mov eax, dword [esp + 0x24]
shr edx, 5
mov dword [eax + 0x84], edx
mov edx, dword [esi + 0x2b38]
mov ecx, dword [edx + ecx + 0x44]
mov eax, dword [esi + 0x704]
mov dword [edi + eax + 0x94], ecx
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x704]
imul eax, eax, 0x2d
test ebp, 0x100f0
mov dword [edx + eax*4 + 0x48], ecx
mov edx, dword [esi + 0x704]
mov dword [edx + eax*4 + 0x4c], ecx
mov edx, dword [esi + 0x704]
mov dword [edx + eax*4 + 0x50], ecx
mov edx, dword [esi + 0x704]
mov dword [edx + eax*4 + 0x54], ecx
je 0x54fd91
mov ecx, ebp
and ecx, 0x40
mov eax, 1
mov dword [esp + 0x18], ecx
je 0x54fc80
mov ecx, dword [esi + 0x704]
or dword [edi + ecx + 0x44], 4
lea ecx, [edi + ecx + 0x44]
mov ecx, ebp
and ecx, 0x80
mov dword [esp + 0x1c], ecx
je 0x54fc9d
mov edx, dword [esi + 0x704]
or dword [edi + edx + 0x44], 8
lea ecx, [edi + edx + 0x44]
mov ecx, ebp
and ecx, 0x10
mov dword [esp + 0x24], ecx
je 0x54fcb6
mov ecx, dword [esi + 0x704]
or dword [edi + ecx + 0x44], eax
lea ecx, [edi + ecx + 0x44]
mov ecx, ebp
and ecx, 0x20
mov dword [esp + 0x14], ecx
je 0x54fcd0
mov edx, dword [esi + 0x704]
or dword [edi + edx + 0x44], 2
lea ecx, [edi + edx + 0x44]
mov ecx, dword [esi + 0x730]
mov edx, dword [esi + 0x72c]
imul ecx, ecx, 0x98
add ecx, edx
test dword [ecx + 0x28], 0x280
je 0x54fd24
mov eax, dword [ecx + 0x3c]
cmp eax, 1
jge 0x54fcfa
mov eax, 1
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x48], eax
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x4c], eax
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x50], eax
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x54], eax
jmp 0x54fd91
test ebp, 0x300
je 0x54fd31
mov eax, 2
cmp dword [esp + 0x24], 0
je 0x54fd49
mov edx, dword [esi + 0x704]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [edi + edx + 0x48], ecx
cmp dword [esp + 0x14], 0
je 0x54fd61
mov edx, dword [esi + 0x704]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [edi + edx + 0x4c], ecx
cmp dword [esp + 0x18], 0
je 0x54fd79
mov edx, dword [esi + 0x704]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [edi + edx + 0x50], ecx
cmp dword [esp + 0x1c], 0
je 0x54fd91
mov edx, dword [esi + 0x704]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [edi + edx + 0x54], ecx
mov ecx, dword [esi + 0x730]
mov eax, dword [esi + 0x514]
imul ecx, ecx, 0x98
mov edx, dword [esi + 0x72c]
mov ecx, dword [ecx + edx + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x5a0
push eax
mov eax, dword [esi + 0x704]
add ecx, dword [edi + eax + 0x48]
push ecx
call ebp
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x74], eax
mov ecx, dword [esi + 0x730]
mov eax, dword [esi + 0x514]
imul ecx, ecx, 0x98
mov edx, dword [esi + 0x72c]
mov ecx, dword [ecx + edx + 0x14]
push 0x5a0
push eax
mov eax, dword [esi + 0x704]
add ecx, dword [edi + eax + 0x4c]
push ecx
call ebp
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x78], eax
mov ecx, dword [esi + 0x730]
mov eax, dword [esi + 0x514]
imul ecx, ecx, 0x98
mov edx, dword [esi + 0x72c]
push 0x5a0
push eax
mov eax, dword [ecx + edx + 0x1c]
push eax
call ebp
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x28], eax
mov eax, dword [esi + 0x730]
mov edx, dword [esi + 0x504]
imul eax, eax, 0x98
mov ecx, dword [esi + 0x72c]
push 0x5a0
push edx
mov edx, dword [eax + ecx + 0x1c]
push edx
call ebp
mov ecx, dword [esi + 0x704]
mov edx, dword [esp + 0x40]
push edx
mov dword [edi + ecx + 0x38], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x2c]
push ecx
mov ecx, dword [ebx + 4]
add ecx, dword [ebx]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x730]
push ecx
push edx
push eax
push esi
call fcn.004ba810
add esp, 0x24
cmp dword [esi + 0x3a04], 0
je 0x54fed7
mov ecx, dword [esi + 0x730]
mov edx, dword [esi + 0x72c]
imul ecx, ecx, 0x98
or dword [ecx + edx + 0x28], 0x8000
lea eax, [ecx + edx + 0x28]
mov eax, dword [esi + 0x730]
mov ecx, dword [esi + 0x72c]
imul eax, eax, 0x98
mov dword [eax + ecx], 1
mov eax, dword [esi + 0x704]
mov edx, dword [esi + 0x514]
mov ecx, dword [edi + eax + 0x18]
sub ecx, dword [esi + 0x528]
push edx
push 0x5a0
push ecx
call ebp
mov edx, dword [esi + 0x730]
mov ecx, dword [esi + 0x72c]
imul edx, edx, 0x98
mov dword [edx + ecx + 8], eax
mov eax, dword [esi + 0x730]
mov edx, dword [esi + 0x510]
imul eax, eax, 0x98
mov ecx, dword [esi + 0x72c]
push 0x5a0
push edx
mov edx, dword [eax + ecx + 4]
push edx
call ebp
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x14], eax
cmp dword [esi + 0x654], 0
je 0x54ff59
mov ecx, dword [esi + 0x564]
mov edx, dword [esi + 0x704]
add ecx, dword [ebx + 0x28]
lea eax, [edi + edx + 0x14]
add dword [eax], ecx
mov eax, dword [esi + 0x730]
mov ecx, dword [esi + 0x72c]
mov edx, eax
imul edx, edx, 0x98
mov ecx, dword [edx + ecx + 0x28]
test cl, cl
jns 0x54ffa5
test ecx, 0x40000000
je 0x54ffa5
mov edx, dword [esi + 0x704]
lea ecx, [edi + edx + 0x14]
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x44]
push ecx
push eax
push esi
call fcn.004bf650
mov ecx, dword [esp + 0x34]
add esp, 0x10
add dword [ecx], eax
mov eax, dword [esi + 0x730]
mov edx, dword [esi + 0x510]
imul eax, eax, 0x98
mov ecx, dword [esi + 0x72c]
push 0x5a0
push edx
mov edx, dword [eax + ecx + 0x10]
push edx
call ebp
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x24], eax
mov eax, dword [esi + 0x730]
mov edx, dword [esi + 0x510]
imul eax, eax, 0x98
mov ecx, dword [esi + 0x72c]
mov eax, dword [eax + ecx + 0x14]
push 0x5a0
push edx
mov edx, dword [esi + 0x704]
add eax, dword [edi + edx + 0x50]
push eax
call ebp
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x7c], eax
mov eax, dword [esi + 0x730]
mov edx, dword [esi + 0x510]
imul eax, eax, 0x98
mov ecx, dword [esi + 0x72c]
mov eax, dword [eax + ecx + 0x14]
push 0x5a0
push edx
mov edx, dword [esi + 0x704]
add eax, dword [edi + edx + 0x54]
push eax
call ebp
mov ecx, dword [esi + 0x704]
mov dword [edi + ecx + 0x80], eax
mov edx, dword [esi + 0x730]
mov eax, dword [esi + 0x72c]
imul edx, edx, 0x98
test byte [edx + eax + 0x28], 0x10
je 0x55025e
mov ecx, dword [esi + 0x138]
mov eax, dword [esp + 0x40]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x2c]
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x5500c6
mov edx, dword [esi + 0x730]
imul ecx, ecx, 0x84
mov eax, dword [esi + 0x588c]
imul edx, edx, 0x98
mov ecx, dword [eax + ecx + 4]
mov eax, dword [esi + 0x72c]
push ecx
add edx, eax
push esi
mov dword [esp + 0x2c], edx
call fcn.00514800
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x14]
lea eax, [eax + edx*2]
add esp, 8
mov dword [ecx + 0x10], eax
jmp 0x55017d
cmp eax, dword [esi + 0x5e4]
mov dword [esp + 0x24], eax
jge 0x550117
mov ecx, dword [esi + 0x138]
mov edx, dword [esp + 0x24]
mov edx, dword [ecx + edx*4]
mov ecx, dword [ecx + eax*4]
mov edx, dword [edx + 0x30]
cmp edx, dword [ecx + 0x30]
jne 0x550117
mov eax, dword [esp + 0x24]
push 0
push 1
push eax
push esi
call fcn.004f9940
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
add eax, 1
add esp, 0x10
cmp eax, dword [esi + 0x5e4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
jl 0x5500d2
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esi + 0x730]
mov eax, dword [edx + 0x14]
imul ecx, ecx, 0x98
mov edx, dword [esi + 0x72c]
imul eax, eax, 0x58
add ecx, edx
mov edx, dword [esi + 0x510]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x2b38]
push edx
add ecx, eax
mov eax, dword [esp + 0x18]
push 0x5a0
push eax
mov dword [esp + 0x28], ecx
call ebp
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x14]
lea eax, [eax + ecx*2 + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
add eax, dword [ecx + 0xc]
cmp eax, dword [edx + 0x10]
jge 0x55017d
mov dword [edx + 0x10], eax
mov edx, dword [esi + 0x730]
mov eax, dword [esi + 0x72c]
imul edx, edx, 0x98
and dword [edx + eax + 0x28], 0xffffffef
mov ecx, dword [esi + 0x730]
lea eax, [edx + eax + 0x28]
imul ecx, ecx, 0x98
mov edx, dword [esi + 0x72c]
test byte [ecx + edx + 0x28], 0xc
je 0x55025e
mov eax, dword [esi + 0x730]
imul eax, eax, 0x98
mov ecx, edx
mov edx, dword [esi + 0x510]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0xc]
push edx
push 0x5a0
push eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x24]
sub ecx, dword [eax + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x730]
mov eax, dword [esi + 0x72c]
imul edx, edx, 0x98
test byte [edx + eax + 0x28], 8
lea ecx, [edx + eax]
je 0x550211
mov eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x730]
mov ecx, dword [esi + 0x510]
imul edx, edx, 0x98
mov eax, dword [esi + 0x72c]
push 0x5a0
push ecx
mov ecx, dword [edx + eax + 4]
push ecx
call ebp
mov edx, dword [esi + 0x704]
mov dword [edi + edx + 0x14], eax
cmp dword [esi + 0x654], 0
je 0x55025e
mov ecx, dword [esi + 0x564]
mov eax, dword [esi + 0x704]
add ecx, dword [ebx + 0x28]
lea eax, [edi + eax + 0x14]
add dword [eax], ecx
mov edx, dword [esi + 0x704]
mov ecx, dword [edi + edx + 0x74]
lea eax, [edi + edx]
mov edx, dword [eax + 0x18]
lea eax, [ecx + edx]
mov dword [ebx], eax
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x504]
push ecx
push edx
push eax
call ebp
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esi + 0x704]
mov edx, dword [eax + edi + 0x7c]
add eax, edi
mov eax, dword [eax + 0x14]
add eax, edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x18], eax
mov edx, dword [esi + 0x704]
mov eax, dword [edi + edx + 0x24]
sub eax, dword [edi + edx + 0x80]
add edi, edx
sub eax, dword [edi + 0x7c]
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ecx + 0x1c], eax
mov dword [ebx + 0x1c], eax
mov dword [ecx + 4], eax
add edi, 1
mov dword [ebx + 4], eax
push edi
mov dword [ecx + 8], eax
push esi
mov dword [ebx + 8], eax
call fcn.004bba60
add esp, 8
test eax, eax
pop ebp
jne 0x550338
push 1
push 0x5eb148
push esi
call fcn.004e7a10
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov dword [ecx], edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x28]
push 0x40
push edx
push eax
call fcn.004e29c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
push 0x40
push ecx
push edx
call fcn.004e29c0
add esp, 0x18
mov dword [ebx], edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x38]
mov dword [eax], edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret