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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x477cbb
mov dword [ebp - 4], 0x5d1320
push 0
push esi
call fcn.00476dc8
add esp, 8
mov eax, esi
cmp eax, 0x75
ja case.0x476e82.0
jmp dword [eax*4 + 0x476e89]
mov eax, dword [ebx]
test ah, 4
jne 0x477073
test eax, 0xfffbffff
jne case.0x476e82.0
push esi
push 0
push ebx
call fcn.0046d850
pop ecx
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00474e84
add esp, 0x10
mov edi, 1
cmp esi, 0x18
jne case.0x476e82.0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
jne case.0x476e82.0
call fcn.00475324
mov edx, dword [ebp - 4]
mov dword [edx + 0xc0], eax
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edi, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xac], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xb8], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xf8], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xbc], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc4], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc8], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xcc], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xd0], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xd8], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xf4], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xfc], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x80
je case.0x476e82.0
push ebx
call fcn.0046da24
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x104], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x54], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x70], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0xa8], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0xf0], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x34], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
push eax
push 1
call fcn.004480c0
add esp, 8
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x78], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0xa4], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl case.0x476e82.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0xb0], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
mov edi, eax
mov eax, dword [ebp - 4]
pop ecx
test edi, edi
mov dword [eax + 0xd4], edi
je 0x477727
cmp edi, 0x10
jge 0x47770b
mov edx, dword [ebp - 4]
mov dword [edx + 0xd4], 0x10
jmp 0x477727
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xd4], 0x1000
jle 0x477727
mov eax, dword [ebp - 4]
mov dword [eax + 0xd4], 0x1000
call fcn.0043fe44
mov edi, 1
jmp case.0x476e82.0
test byte [ebx], 0x1a
je case.0x476e82.0
push ebx
call fcn.0046db38
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xe8], eax
mov edi, 1
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.00447fa4
pop ecx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.00444784
pop ecx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.0042a984
pop ecx
mov edi, 1
jmp case.0x476e82.0
mov dword [ebp - 8], 0xffffffff
test byte [ebx + 1], 4
je 0x477830
push 0x5acea0
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4560
add esp, 8
test eax, eax
jne 0x4777ee
mov dword [ebp - 8], 1
jmp 0x47783f
push 0x5acea6
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4560
add esp, 8
test eax, eax
jne 0x477810
mov dword [ebp - 8], 2
jmp 0x47783f
push str.MIXED
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4560
add esp, 8
test eax, eax
jne 0x47783f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x47783f
test byte [ebx], 0x1a
je 0x47783f
push ebx
call fcn.0046db38
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x477855
cmp dword [ebp - 8], 2
je 0x477855
cmp dword [ebp - 8], 0
jne case.0x476e82.0
cmp esi, 0x66
jne 0x477868
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [edx + 0xdc], ecx
jmp 0x477874
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0xe0], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
xor edi, edi
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 8
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x4778b2
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], ebx
jmp 0x4778cc
mov al, byte [ebx]
cmp al, 0x59
je 0x4778c4
cmp al, 0x79
jne 0x4778c7
inc edi
jmp 0x4778cb
test edi, edi
jne 0x4778d1
inc ebx
cmp byte [ebx], 0
jne 0x4778ba
cmp edi, 4
mov ecx, dword [ebp - 4]
setge dl
and edx, 1
mov edi, 1
mov dword [ecx], edx
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 8
mov eax, dword [eax + 0x110]
test eax, eax
je 0x47791e
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0x110], ebx
jmp case.0x476e82.0
push ebx
call fcn.0046d86c
pop ecx
test eax, eax
jbe case.0x476e82.0
push ebx
call fcn.0046d850
movsx eax, byte [eax]
mov edx, dword [ebp - 4]
pop ecx
mov edi, 1
mov dword [edx + 0xe4], eax
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 8
mov eax, dword [eax + 0x68]
test eax, eax
je 0x47798f
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], ebx
push ebx
call fcn.004c4990
pop ecx
cmp eax, 4
jb 0x4779b5
push 4
push str.PRIN
push ebx
call fcn.004b45c0
add esp, 0xc
test eax, eax
je 0x4779b9
xor ecx, ecx
jmp 0x4779be
mov ecx, 1
mov eax, dword [ebp - 4]
mov edi, 1
mov dword [eax + 4], ecx
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x4779e0
test eax, 0xfffbffff
jne case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov edx, dword [ebp - 4]
mov ebx, eax
add esp, 8
mov eax, dword [edx + 0xb4]
test eax, eax
je 0x477a0b
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0xb4], ebx
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x477a30
test eax, 0xfffbffff
jne case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov edx, dword [ebp - 4]
mov ebx, eax
add esp, 8
mov eax, dword [edx + 0x58]
test eax, eax
je 0x477a58
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0x58], ebx
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x477a7a
test eax, 0xfffbffff
jne case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov edx, dword [ebp - 4]
mov ebx, eax
add esp, 8
mov eax, dword [edx + 0xa0]
test eax, eax
je 0x477aa5
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xa0], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
push eax
call fcn.004b21ec
pop ecx
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xa0]
push ecx
call fcn.004b2164
add esp, 8
mov edi, 1
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x477af8
test eax, 0xfffbffff
jne case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov edx, dword [ebp - 4]
mov ebx, eax
add esp, 8
mov eax, dword [edx + 0x60]
test eax, eax
je 0x477b20
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0x60], ebx
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x477b42
test eax, 0xfffbffff
jne case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov edx, dword [ebp - 4]
mov ebx, eax
add esp, 8
mov eax, dword [edx + 0x100]
test eax, eax
je 0x477b6d
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0x100], ebx
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x477b92
test eax, 0xfffbffff
jne case.0x476e82.0
test eax, 0xfffbffff
jne 0x477b9d
xor ebx, ebx
jmp 0x477bb4
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
test eax, eax
je 0x477bc8
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov eax, ebx
mov dword [edx + 0x108], eax
push eax
call fcn.0046ae3c
pop ecx
mov edi, 1
jmp case.0x476e82.0
mov eax, dword [ebx]
test ah, 4
jne 0x477bf6
test eax, 0xfffbffff
jne case.0x476e82.0
push 0xffff
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.004b4478
mov edx, dword [ebp - 4]
mov ebx, eax
add esp, 8
mov eax, dword [edx + 0x10c]
test eax, eax
je 0x477c21
push eax
call fcn.0046af54
pop ecx
mov edx, dword [ebp - 4]
mov eax, ebx
mov dword [edx + 0x10c], eax
push eax
call fcn.0046ae44
pop ecx
mov edi, 1
jmp case.0x476e82.0
test dword [ebx], 0xfffbffff
jne 0x477c51
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.0042a904
pop ecx
test eax, eax
je case.0x476e82.0
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0x18], eax
jmp case.0x476e82.0
test dword [ebx], 0xfffbffff
jne 0x477c8d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov edi, 1
jmp case.0x476e82.0
test byte [ebx + 1], 4
je case.0x476e82.0
push ebx
call fcn.0046d850
pop ecx
push eax
call fcn.0042a904
pop ecx
test eax, eax
je case.0x476e82.0
mov edx, dword [ebp - 4]
mov edi, 1
mov dword [edx + 0x1c], eax
push 1
push esi
call fcn.00476dc8
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret