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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e9c17
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
call fcn.004f9eb0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x230], 0
test eax, eax
jle 0x5451c3
lea ecx, [esp + 0x12c]
call fcn.00567da0
push esi
lea ecx, [esp + 0x130]
mov byte [esp + 0x234], 1
call fcn.005685a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x130]
call fcn.0056b900
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx]
lea ecx, [esp + 0x12c]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x230], 0
call fcn.00567dc0
jmp 0x5451c9
mov dword [esp + 0x40], esi
mov ebx, esi
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x44]
mov dword [esp + 0x3c], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
call fcn.0052d6d0
test eax, eax
jne 0x54521d
lea ecx, [esp + 0x20]
call fcn.004f9f00
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.00483100
xor eax, eax
jmp 0x5458df
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x44]
mov dword [esp + 0x48], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x48], eax
call fcn.0052d6d0
test eax, eax
je 0x5451f9
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.004f55d0
push eax
mov ecx, ebx
call fcn.0052d6d0
test eax, eax
je 0x5451f9
lea ecx, [esp + 0x11c]
call fcn.00501a20
push ebx
lea ecx, [esp + 0x160]
call fcn.0053b5d0
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov byte [esp + 0x234], 2
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], edx
call fcn.005bfee0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 3
call fcn.0053b220
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
ja 0x545806
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
sub eax, 1
je 0x545720
sub eax, 5
jne 0x545666
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x120]
call fcn.005024c0
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x128]
call fcn.00502cd0
cmp eax, 2
jne 0x545555
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x114], ecx
lea ecx, [esp + 0x114]
mov dword [esp + 0x118], edx
push ecx
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], eax
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x545433
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc0], ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0xd0]
push edx
mov dword [esp + 0xd8], eax
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x545433
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0xdc]
push edx
add eax, 4
push eax
mov dword [esp + 0xe8], ecx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x545418
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x17c]
lea eax, [esp + 0xec]
push eax
add ecx, 0xc
push ecx
mov dword [esp + 0xf8], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
je 0x545666
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005bec90
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x100], ecx
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x108], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0xa0], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x17c]
lea ecx, [esp + 0xe4]
push ecx
add edx, 4
push edx
mov dword [esp + 0xf0], eax
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x545535
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0xa4]
push edx
add eax, 0xc
push eax
mov dword [esp + 0xb0], ecx
call fcn.004fa8a0
add esp, 8
test eax, eax
je 0x545666
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x30]
call fcn.005bec90
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
jmp 0x5457e6
cmp eax, 1
jne 0x5457e6
cmp dword [esp + 0x70], 0
jne 0x545699
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x74]
mov dword [esp + 0x78], eax
push edx
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], ecx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xf8], edx
lea edx, [esp + 0xf4]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0xd0], ecx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x17c]
lea eax, [esp + 0x10c]
push eax
add ecx, 4
push ecx
mov dword [esp + 0x118], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x17c]
lea ecx, [esp + 0xd4]
push ecx
add edx, 0xc
push edx
mov dword [esp + 0xe0], eax
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
lea ecx, [esp + 0x20]
call fcn.004f9f00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005c2ee0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.0053b190
jmp 0x545202
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], ecx
push eax
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x74], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5457e6
jmp 0x54575d
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x180]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push edi
call fcn.00541e20
add esp, 0x14
test eax, eax
je 0x5457e6
cmp eax, 1
jne 0x54577a
mov ecx, dword [esp + 0x44]
and ecx, 0x44
cmp cl, 0x44
je 0x545666
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005bec90
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
jmp 0x5457e6
cmp eax, 2
jne 0x5457e6
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, 0x44
cmp cl, 0x44
je 0x545666
mov ebx, dword [esp + 0x48]
mov edx, ebx
and edx, 0x44
cmp dl, 0x44
je 0x545666
test al, 4
je 0x5457c2
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005bec90
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
test bl, 4
je 0x5457e2
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005bec90
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x15c]
call fcn.0053b250
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
jbe 0x5452c2
lea ecx, [esp + 0x4c]
call fcn.004f9eb0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push edi
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
mov byte [esp + 0x240], 4
call fcn.0052f800
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x4c], edi
jle 0x54587e
jmp 0x545840
mov ecx, dword [esp + 0x54]
mov esi, dword [ecx + edi*4]
lea edx, [esi + 0xc]
push edx
lea eax, [esi + 4]
push eax
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x545877
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.004f55d0
push eax
mov ecx, ebx
call fcn.0052d6d0
test eax, eax
je 0x545903
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x545840
lea ecx, [esp + 0x20]
call fcn.004f9f00
lea ecx, [esp + 0x4c]
call fcn.004f9f00
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.00483100
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005c2ee0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.0053b190
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.00483100
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005c3bb6
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.004f9f00
lea ecx, [esp + 0x4c]
call fcn.004f9f00
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.00483100
jmp 0x54566f