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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
push edi
test byte [esi + 4], 1
je 0x545d08
call fcn.00546a80
fsubr qword [esi + 0x98]
fstp qword [esi + 0x98]
mov edi, dword [esp + 0x98]
mov edx, dword [edi + 0x28]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x1c]
mov esi, dword [edi + 8]
mov ebp, dword [edi + 0x38]
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x48]
push esi
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
call fcn.00546760
mov ecx, eax
xor eax, eax
add esp, 8
cmp esi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
jle 0x545dd0
sub ebp, ecx
sub ecx, ebx
mov eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], esi
jmp 0x545d98
mov ecx, dword [esp + 0x24]
add ecx, eax
add eax, 4
mov edx, dword [ecx + ebp]
shl edx, 2
mov esi, dword [esp + edx + 0x84]
mov dword [ecx], esi
inc esi
mov dword [esp + edx + 0x84], esi
mov esi, dword [eax - 4]
lea ecx, [esp + edx + 0x78]
mov edx, dword [eax]
sub edx, esi
mov esi, dword [ecx]
add esi, edx
mov dword [ecx], esi
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x545d94
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x9c]
push eax
push ecx
push esi
push edi
call fcn.00548060
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x20]
add esp, 0x10
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x28]
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x88]
push edx
push eax
push esi
push edi
mov dword [esp + 0x78], ecx
call fcn.00548060
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x64], ecx
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0x20]
xor eax, eax
add esp, 0x10
cmp ecx, eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x18], eax
jle 0x545ec4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
mov eax, dword [ebx + edx*4]
mov ecx, dword [ebx + edx*4 + 4]
cmp eax, ecx
jge 0x545ea7
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + eax*4]
mov esi, dword [ecx]
mov ebp, dword [esp + 0x1c]
inc eax
add ecx, 4
mov dword [ebp + esi*4], 1
mov esi, dword [ebx + edx*4 + 4]
cmp eax, esi
jl 0x545e8d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x40]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x545e75
xor eax, eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
mov dword [edx], eax
cmp ebp, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov dword [ecx], eax
jle 0x54603e
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
sub ecx, ebx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
sub eax, ebx
sub esi, ebx
sub ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebp
mov ebp, dword [eax + ebx]
cmp ebp, 2
je 0x546024
mov eax, dword [esi + ebx]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
cmp eax, 0xffffffff
lea eax, [ebp*4]
jne 0x545f84
mov edi, dword [esp + eax + 0x78]
mov esi, dword [esp + eax + 0x50]
sub edi, ecx
cmp ecx, edx
mov dword [esp + 0x30], edi
lea esi, [esi + edi*4]
mov dword [esp + 0x34], esi
jge 0x545f7c
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
sub ebp, edi
mov edi, edx
lea esi, [esi + ecx*4]
sub edi, ecx
mov ecx, dword [ebp + esi]
mov dword [esi], ecx
add esi, 4
dec edi
jne 0x545f6c
mov edi, dword [esp + 0x30]
add edx, edi
mov dword [esp + eax + 0x78], edx
jmp 0x545fcf
mov esi, dword [esp + eax + 0x50]
mov edi, dword [esp + eax + 0x78]
cmp ecx, edx
jge 0x545fcb
lea esi, [esi + edi*4]
sub edx, ecx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], edx
lea esi, [esi + ecx*4]
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
cmp dword [edx + ecx*4], ebp
jne 0x545fbd
mov edx, dword [esp + 0x1c]
inc edi
mov dword [edx], ecx
add edx, 4
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x18]
add esi, 4
dec ecx
mov dword [esp + 0x18], ecx
jne 0x545fa4
mov dword [esp + eax + 0x78], edi
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + eax + 0x84]
mov esi, dword [esp + eax + 0x58]
lea ecx, [esp + eax + 0x84]
mov edi, dword [edi + ebx]
mov dword [esi + edx*4], edi
mov esi, dword [esp + eax + 0x48]
mov edi, dword [esp + eax + 0x78]
mov ebp, dword [esi + edx*4]
mov ebx, edi
sub ebx, ebp
mov ebp, dword [esp + eax + 0x60]
mov eax, dword [esp + eax + 0x68]
mov dword [ebp + edx*4], ebx
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
inc edx
mov dword [ecx], edx
mov ebp, dword [ebp + ebx]
mov dword [eax + edx*4 - 4], ebp
mov eax, dword [esp + 0x3c]
mov dword [esi + edx*4], edi
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
add ebx, 4
dec ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ecx
jne 0x545f22
mov ebp, dword [esp + 0x28]
xor edi, edi
mov ecx, dword [esp + edi + 0x70]
mov esi, dword [esp + edi + 0x78]
push ecx
push 1
push esi
call fcn.00546c00
mov eax, dword [esp + edi + 0x5c]
add esp, 0xc
test esi, esi
jle 0x54606e
mov edx, dword [eax]
mov ecx, dword [esp + 0x44]
add eax, 4
dec esi
mov edx, dword [ecx + edx*4]
mov dword [eax - 4], edx
jne 0x54605c
add edi, 4
cmp edi, 8
jl 0x546040
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x94]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test byte [esi + 4], 1
je 0x5460c4
call fcn.00546a80
fadd qword [esi + 0x98]
fstp qword [esi + 0x98]
push ebp
push esi
call fcn.00546790
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret