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

Disassembly:
sub esp, 0x5c
xor eax, eax
mov ax, word [0x7d36bc]
push ebx
push ebp
push esi
push eax
call fcn.00595370
mov ebx, eax
xor ebp, ebp
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x44], ebx
je 0x5c5425
mov cx, word [0x7d358e]
push ebp
push ebp
mov word [esp + 0x28], cx
mov edx, dword [esp + 0x28]
push 8
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.00581440
mov eax, dword [eax]
push eax
call fcn.00649ca0
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x24], esi
je 0x5c5425
xor ecx, ecx
mov cx, word [0x7d35e4]
push edi
push ecx
mov ecx, ebx
call fcn.00582de0
mov ecx, dword [0x7d35e4]
push ebp
push ebp
push 1
push ecx
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.00581440
mov eax, dword [eax]
mov ecx, 0x7cb478
mov dword [esp + 0x34], eax
call fcn.004d51b0
mov edi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jne 0x5c4e89
mov dword [esp + 0x1c], ebp
jmp 0x5c4e95
mov ecx, dword [esi + 0x20]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
jle 0x5c5412
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x38], 0x3f000000
mov dword [esp + 0x44], 0xffff80bd
jmp 0x5c4ebf
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [ecx + edx*4]
mov ecx, esi
call fcn.00580bb0
push 0
mov dword [esp + 0x28], eax
mov ax, word [0x7d36ba]
push 0
mov word [esp + 0x34], ax
mov ecx, dword [esp + 0x34]
push 8
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00581440
mov cx, word [0x7d3602]
mov eax, dword [eax]
push 0
push 0
mov word [esp + 0x38], cx
mov edx, dword [esp + 0x38]
push 1
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00581440
mov ebp, dword [eax]
mov eax, dword [0x7d36b8]
push 0
push 0
push 1
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov dword [esp + 0x50], ebp
call fcn.00581440
mov edx, dword [eax]
cmp dword [esp + 0x34], 3
mov dword [esp + 0x10], edx
jne 0x5c4f69
mov eax, dword [0x7947c8]
mov ecx, dword [0x7c67dc]
push eax
mov dword [esp + 0x24], 0
call fcn.0040f930
mov dword [esp + 0x24], eax
jmp 0x5c4f87
mov eax, dword [0x7d35b4]
push 0
push 0
push 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.00581440
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov ecx, esi
call fcn.00578820
push 1
mov ecx, esi
mov dword [esi + 0x118], 0x3f800000
call fcn.00581400
push 0x10
mov eax, 0xffff80cb
push eax
push 0xffff8059
mov ecx, esi
mov dword [esi + 0xb4], 0
call fcn.00581f30
mov eax, dword [esp + 0x38]
push 2
push eax
push 0xffff8055
mov ecx, esi
call fcn.00581f30
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005e2e00
add esp, 4
test al, al
je 0x5c5024
push 0
push edi
push str.image
call fcn.0058df10
add esp, 4
mov ecx, esi
push eax
call fcn.00588630
mov ebp, eax
push 0x10
mov ecx, ebp
call fcn.00581130
push 0x10
mov ecx, ebp
call fcn.00581210
mov eax, 0xa
mov dword [ebp + 0xbc], eax
mov dword [ebp + 0xb8], eax
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax*4 + 0x747d88]
test cl, 1
je 0x5c50cb
mov eax, dword [eax*4 + 0x79454c]
cmp eax, 0x556
jne 0x5c5055
mov eax, dword [ebp*4 + 0x794430]
jmp 0x5c51aa
cmp eax, 0x518
jne 0x5c507a
mov ecx, dword [ebp*4 + 0x794430]
push ecx
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x2b0
jmp 0x5c517f
cmp eax, 0x51d
jne 0x5c509f
mov edx, dword [ebp*4 + 0x794430]
mov ecx, dword [0x7c67dc]
push edx
call fcn.0040f930
push eax
push 0x2b4
jmp 0x5c517f
cmp eax, 0x551
jne 0x5c50b3
mov eax, dword [ebp*4 + 0x794430]
push eax
jmp 0x5c516e
cmp eax, 0x55c
jne 0x5c5213
mov ecx, dword [ebp*4 + 0x794430]
push ecx
jmp 0x5c51e8
test cl, 2
mov eax, dword [eax*4 + 0x79454c]
je 0x5c51fb
cmp eax, 0x514
jne 0x5c511b
mov edx, dword [esp + 0x10]
mov eax, dword [edx*4 + 0x794410]
mov ecx, dword [0x7c67dc]
push eax
call fcn.0040f930
mov ecx, dword [0x7c67dc]
push eax
push 0x2b0
call fcn.0040f930
push eax
push 0x793130
push edi
call ebx
add esp, 0x10
jmp 0x5c5213
cmp eax, 0x519
jne 0x5c515b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx*4 + 0x794410]
mov ecx, dword [0x7c67dc]
push edx
call fcn.0040f930
mov ecx, dword [0x7c67dc]
push eax
push 0x2b4
call fcn.0040f930
push eax
push 0x793130
push edi
call ebx
add esp, 0x10
jmp 0x5c5213
cmp eax, 0x54d
jne 0x5c5198
mov eax, dword [esp + 0x10]
mov ecx, dword [eax*4 + 0x794410]
push ecx
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x2b3
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x793130
push edi
call ebx
add esp, 0x10
jmp 0x5c5213
cmp eax, 0x552
jne 0x5c51d5
mov edx, dword [esp + 0x10]
mov eax, dword [edx*4 + 0x794410]
mov ecx, dword [0x7c67dc]
push eax
call fcn.0040f930
push eax
push 0x2b2
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x793130
push edi
call ebx
add esp, 0x10
jmp 0x5c5213
cmp eax, 0x558
jne 0x5c5213
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx*4 + 0x794410]
push edx
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push 0x2b1
jmp 0x5c51bc
mov ecx, dword [0x7c67dc]
push eax
call fcn.0040f930
push eax
push 0x775998
push edi
call ebx
add esp, 0xc
mov eax, dword [0x7d35b8]
push 0
push 0
push 1
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.00581440
mov edx, dword [eax]
mov ax, word [0x7d3586]
push 0
push 0
mov word [esp + 0x48], ax
mov ecx, dword [esp + 0x48]
push 1
mov dword [esp + 0x48], edx
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, esi
call fcn.00581440
mov eax, dword [eax]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [0x7d35d0]
push 1
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.00581440
mov ebp, dword [eax]
test ebp, ebp
je 0x5c5284
push ebp
push edi
push 0x7759a8
push edi
call ebx
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c52af
cmp eax, ebp
je 0x5c52af
mov ecx, dword [0x7c67dc]
push eax
push 0x3c
call fcn.0040f930
push eax
push edi
push str._s__s__d
push edi
call ebx
mov eax, dword [esp + 0x24]
add esp, 0x14
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
cmp ecx, 0x27
je 0x5c52f0
cmp ecx, 0x28
je 0x5c52f0
cmp ecx, 0x2f
je 0x5c52f0
cmp eax, 1
jne 0x5c52d1
push 0x2b5
jmp 0x5c52d8
jle 0x5c52f0
push 0x2b6
mov ecx, dword [0x7c67dc]
call fcn.0040f930
push eax
push edi
push 0x793130
push edi
call ebx
add esp, 0x10
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x5c532c
cmp ebp, 1
jle 0x5c532c
mov ecx, dword [0x7c67dc]
push 0x2ba
call fcn.0040f930
mov ecx, dword [0x7c67dc]
push eax
push ebp
push 0x2b8
call fcn.0040f930
push eax
push edi
push str._s__s__d__s
push edi
call ebx
add esp, 0x18
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x5c5363
mov ecx, dword [0x7c67dc]
push 0x2bc
call fcn.0040f930
mov ecx, dword [0x7c67dc]
push eax
push ebp
push 0x2bb
call fcn.0040f930
push eax
push edi
push str._s__s__d__s
push edi
call ebx
add esp, 0x18
mov eax, dword [esp + 0x24]
mov ecx, dword [0x7c67dc]
push eax
push 0x2c0
call fcn.0040f930
push eax
push edi
push str._s__s__s
push edi
call ebx
xor ecx, ecx
mov cx, word [0x7d35a4]
add esp, 0x14
push 0
push ecx
mov ecx, esi
call fcn.00588980
mov esi, eax
push 1
mov ecx, esi
mov dword [esi + 0x118], 0x3f800000
call fcn.00581400
push 0x10
mov eax, 0xffff80bd
push eax
push 0xffff8061
mov ecx, esi
mov dword [esi + 0xc8], 0
mov dword [esi + 0xd0], 4
call fcn.00581f30
push 0
push 0
push edi
push 0xffff80b4
mov ecx, esi
call fcn.00588be0
mov edx, dword [esp + 0x44]
push 0x10
push edx
push 0xffff8061
mov ecx, esi
call fcn.00581f30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x5c4ebb
mov ebx, dword [esp + 0x48]
push 1
mov ecx, ebx
call fcn.00583b70
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret