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

Disassembly:
mov eax, 0x11d4
call fcn.004cf4b0
mov eax, dword [esp + 0x11d8]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
jne 0x474b42
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x11d4
ret 0x14
mov ecx, dword [0x5df9c8]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.004743e0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x474b6c
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x11d4
ret 0x14
mov ax, word [ebp + 0x44]
test ax, ax
je 0x475138
cmp ax, 0xffff
je 0x475138
mov cx, word [ebp + 0x1bc]
mov esi, dword [esp + 0x11f0]
cmp si, cx
jae 0x475127
cmp si, 7
ja 0x474bb1
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x11d4
ret 0x14
mov ebx, dword [esp + 0x11f8]
cmp bl, 3
ja 0x475116
mov eax, dword [ebp + 0x1dc]
test eax, eax
je 0x474d5b
mov eax, dword [ebp + 0x1cc]
cmp eax, 5
je 0x474ca0
cmp eax, 7
je 0x474ca0
cmp eax, 8
jne 0x474d5b
mov ecx, dword [esp + 0x11f4]
lea edx, [esp + 0x10]
lea eax, [esp + 0x614]
lea edi, [ebp + 0x1e0]
push edx
mov edx, dword [esp + 0x11f0]
push eax
push edi
push ebx
mov dword [esp + 0x20], 0x400
mov ax, word [ebp + 0x1bc]
push ecx
push esi
push edx
push eax
call fcn.00473090
test ax, ax
jne 0x47513c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x11ec]
lea edx, [esp + 0x618]
push eax
push edx
push eax
lea eax, [esp + 0x624]
push eax
push ecx
call fcn.00475750
test ax, ax
jne 0x47513c
lea edx, [esp + 0x614]
push edi
push edx
call fcn.00473010
test ax, ax
jne 0x47513c
lea eax, [esp + 0x614]
push eax
call fcn.004732b0
push ebp
push eax
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
test byte [ebp + 0x1d0], 4
je 0x474d5b
lea edx, [esp + 0x18]
lea edi, [ebp + 0x1e0]
push edx
lea edx, [esp + 0xac]
push 0x50
push edx
mov edx, dword [esp + 0x1200]
push edi
push ebx
push edx
mov edx, dword [esp + 0x1204]
push esi
push edx
push ecx
push eax
call fcn.00472570
test ax, ax
jne 0x474d44
lea eax, [esp + 0x14]
lea ecx, [esp + 0x138]
push eax
mov eax, dword [esp + 0x1c]
push 0x50
push ecx
mov ecx, dword [esp + 0x11f4]
lea edx, [esp + 0xb4]
push 0x50
push edx
push eax
push ecx
call fcn.00475270
test ax, ax
jne 0x474d44
lea edx, [esp + 0x64]
push edx
push edi
call fcn.004723b0
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa8]
push eax
push 0x50
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [ebp + 0x1cc]
lea eax, [esp + 0x144]
push edx
push eax
push ecx
call fcn.00472860
push ebp
push eax
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0xa14]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0xdfc]
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x74]
mov dword [esp + 0x30], ecx
mov ecx, 0xc
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x5c], edx
xor ecx, ecx
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x40]
movsx edx, word [ebp + 0x70]
mov eax, dword [ebp + edx*4 + 0x48]
push eax
push 0x5cfdb4
push ecx
call fcn.004ce616
xor edx, edx
lea eax, [esp + 0x34]
mov dx, word [ebp + 0x44]
push edx
push 0x5cfdb4
push eax
call fcn.004ce616
mov ecx, dword [esp + 0x1204]
lea edx, [esp + 0x8c]
and ecx, 0xffff
push ecx
push 0x5cfdb4
push edx
call fcn.004ce616
and esi, 0xffff
lea eax, [esp + 0x70]
push esi
push 0x5cfdb4
push eax
call fcn.004ce616
mov ecx, dword [esp + 0x1224]
lea edx, [esp + 0x4c]
and ecx, 0xffff
push ecx
push 0x5cfdb4
push edx
call fcn.004ce616
and ebx, 0xff
lea eax, [esp + 0x70]
push ebx
push 0x5cfdb4
push eax
call fcn.004ce616
mov edx, dword [esp + 0x1230]
add esp, 0x48
lea ecx, [esp + 0x1ec]
push 0x40
push ecx
push edx
call fcn.0046e560
test ax, ax
jne 0x47513c
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
push 6
push 0x5cfdac
call fcn.0047a330
mov edx, eax
add esp, 0x20
test edx, edx
jne 0x474ee9
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xdfc]
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 + 0x5c]
lea edx, [esp + 0xe00]
push ecx
push edx
push str.writeKey
push 3
push 0x5cfc9c
call fcn.0047a330
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x474f54
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x22c]
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 + 0x230]
push ecx
call fcn.0047a410
mov edx, eax
add esp, 8
test edx, edx
jne 0x474fae
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x22c]
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 + 0xa18]
lea edx, [esp + 0x230]
push ecx
push ebp
push edx
call fcn.004780b0
add esp, 0x10
test ax, ax
je 0x47500f
push ebp
push eax
call fcn.0046eb00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
lea eax, [esp + 0xa14]
push eax
call fcn.0047a100
mov esi, eax
add esp, 4
test esi, esi
jne 0x47503d
push ebp
push 0x42
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
lea ecx, [esp + 0xa14]
lea edx, [esp + 0x188]
push ecx
lea eax, [esp + 0xfc]
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 0x47508a
push ebp
push 0x42
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
mov esi, str.error
lea eax, [esp + 0xf8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4750be
test cl, cl
je 0x4750ba
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4750be
add eax, 2
add esi, 2
test cl, cl
jne 0x475096
xor eax, eax
jmp 0x4750c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4750eb
lea eax, [esp + 0x188]
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, 0x11d4
ret 0x14
lea esi, [ebp + 0x80]
push esi
call fcn.004e7776
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.0046ebe0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 6
pop ebx
add esp, 0x11d4
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x11d4
ret 0x14
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d4
ret 0x14