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

Disassembly:
mov eax, 0x1184
call fcn.004cf4b0
push ebx
mov ebx, dword [esp + 0x118c]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x474582
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x1184
ret 0xc
mov ecx, dword [0x5df9c8]
mov eax, dword [ebx + 0x54]
push ecx
push eax
call fcn.004743e0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4745ac
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x1184
ret 0xc
mov eax, dword [esp + 0x11a0]
test eax, eax
jne 0x4745c8
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x1184
ret 0xc
mov ax, word [ebp + 0x44]
test ax, ax
je 0x474af6
cmp ax, 0xffff
je 0x474af6
mov cx, word [ebp + 0x1bc]
mov esi, dword [esp + 0x119c]
cmp si, cx
jae 0x474ae5
mov eax, dword [ebp + 0x1dc]
test eax, eax
je 0x474759
mov eax, dword [ebp + 0x1cc]
cmp eax, 5
je 0x4746c7
cmp eax, 7
je 0x4746c7
cmp eax, 8
jne 0x474759
lea edx, [esp + 0x10]
lea eax, [esp + 0x9ac]
lea edi, [ebp + 0x1e0]
push edx
mov dword [esp + 0x14], 0x400
mov cx, word [ebp + 0x1bc]
push eax
push edi
push esi
push ecx
call fcn.004731c0
test ax, ax
jne 0x474afa
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x9b0]
push eax
push ecx
lea edx, [esp + 0x9b8]
push eax
push edx
push ebx
call fcn.00475750
test ax, ax
jne 0x474afa
lea eax, [esp + 0x9ac]
push edi
push eax
call fcn.00473010
test ax, ax
jne 0x474afa
mov ecx, dword [esp + 0x11a0]
push 0
lea edx, [esp + 0x9b0]
push ecx
push edx
call fcn.004732d0
push ebp
push eax
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
test byte [ebp + 0x1d0], 4
je 0x474759
lea edx, [esp + 0x14]
lea edi, [ebp + 0x1e0]
push edx
lea edx, [esp + 0x150]
push 0x50
push edx
push edi
push esi
push ecx
push eax
call fcn.004723d0
test ax, ax
jne 0x474742
lea eax, [esp + 0x18]
lea ecx, [esp + 0xfc]
push eax
mov eax, dword [esp + 0x18]
push 0x50
push ecx
lea edx, [esp + 0x158]
push 0x50
push edx
push eax
push ebx
call fcn.00475270
test ax, ax
jne 0x474742
mov ecx, dword [esp + 0x11a0]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x1cc]
lea edx, [esp + 0x100]
push edi
push edx
push eax
push ecx
call fcn.00472730
push ebp
push eax
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x5c4]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0xdac]
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0x1dc]
rep stosd dword es:[edi], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], eax
movsx ecx, word [ebp + 0x70]
lea eax, [esp + 0x28]
mov edx, dword [ebp + ecx*4 + 0x48]
push edx
push 0x5cfdb4
push eax
call fcn.004ce616
xor ecx, ecx
lea edx, [esp + 0x4c]
mov cx, word [ebp + 0x44]
push ecx
push 0x5cfdb4
push edx
call fcn.004ce616
and esi, 0xffff
lea eax, [esp + 0x34]
push esi
push 0x5cfdb4
push eax
call fcn.004ce616
add esp, 0x24
lea ecx, [esp + 0x19c]
push 0x40
push ecx
push ebx
call fcn.0046e560
test ax, ax
jne 0x474afa
lea edx, [esp + 0x1c]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
push 3
push 0x5cfdac
call fcn.0047a330
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x474861
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xdac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ce2e1
lea ecx, [esp + 0x50]
lea edx, [esp + 0xdb0]
push ecx
push edx
push str.readKey
push 3
push 0x5cfc9c
call fcn.0047a330
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4748cc
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1dc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ce2e1
lea ecx, [esp + 0x1e0]
push ecx
call fcn.0047a410
mov edx, eax
add esp, 8
test edx, edx
jne 0x474926
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1dc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ce2e1
lea ecx, [esp + 0x5c8]
lea edx, [esp + 0x1e0]
push ecx
push ebp
push edx
call fcn.004780b0
add esp, 0x10
test ax, ax
je 0x474987
push ebp
push eax
call fcn.0046eb00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
lea eax, [esp + 0x5c4]
push eax
call fcn.0047a100
mov esi, eax
add esp, 4
test esi, esi
jne 0x4749b5
push ebp
push 0x42
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
lea ecx, [esp + 0x5c4]
lea edx, [esp + 0x98]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push esi
push 3
push 0x5cfc9c
call fcn.00479f60
push esi
mov edi, eax
call fcn.004ce2e1
add esp, 0x1c
test di, di
je 0x4749ff
push ebp
push 0x42
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
mov byte [esp + 0x97], 0
mov byte [esp + 0xfb], 0
mov esi, str.error
lea eax, [esp + 0x58]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x474a40
test cl, cl
je 0x474a3c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x474a40
add eax, 2
add esi, 2
test cl, cl
jne 0x474a18
xor eax, eax
jmp 0x474a45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x474a6d
lea eax, [esp + 0x98]
push eax
call fcn.004ce463
push ebp
push eax
call fcn.0046ebe0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x5c4]
push ecx
push edx
push 1
push 0x5cfdac
call fcn.00479f60
add esp, 0x10
test ax, ax
je 0x474aa6
push ebp
push 0x42
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
lea eax, [esp + 0x34]
push eax
call fcn.004ce463
mov ecx, dword [esp + 0x11a4]
lea esi, [ebp + 0x80]
push esi
mov word [ecx], ax
call fcn.004e7776
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.0046ebe0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x1184
ret 0xc
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1184
ret 0xc