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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x58]
push esi
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x2c]
mov edx, dword [ebx + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 0x10
push eax
push ecx
push edx
mov dword [esp + 0x54], 8
mov dword [esp + 0x50], str.UNKNOWN
call fcn.0043aa20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x477bf5
mov eax, dword [ebx]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x28], eax
xor eax, eax
and ecx, 1
push ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x47788a
mov edi, dword [esp + 0x70]
mov cx, word [edi + 0x14]
cmp eax, ecx
jae 0x477bc4
jmp 0x47788e
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x74]
push ecx
push 0
push eax
push edx
push edi
push ebx
call fcn.004424b0
mov esi, eax
add esp, 0x20
cmp esi, 0xffff8756
je 0x477bc4
test esi, esi
jne 0x477b52
mov ebp, dword [ebx + 0x1d4]
mov ecx, ebp
and ecx, 0x800
je 0x4778d9
mov eax, 0x26
jmp 0x4778e4
mov eax, ebp
and al, 1
neg al
sbb eax, eax
and eax, 6
mov edx, dword [esp + 0x14]
lea eax, [eax + edx*2 + 0x1a]
xor edx, edx
mov dx, word [eax + edi]
mov eax, dword [esp + 0x14]
add edx, edi
test eax, eax
mov dword [esp + 0x28], edx
jne 0x477904
mov eax, dword [ebx]
jmp 0x47792c
test ecx, ecx
je 0x47790f
mov eax, 0x26
jmp 0x47791a
mov eax, ebp
and al, 1
neg al
sbb eax, eax
and eax, 6
mov ebx, dword [esp + 0x14]
lea ebx, [eax + ebx*2 + 0x18]
xor eax, eax
mov ax, word [ebx + edi]
mov ebx, dword [esp + 0x64]
test ecx, ecx
je 0x477937
mov ebp, 0x26
jmp 0x477945
mov ecx, ebp
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 6
mov ebp, ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ebp + ecx*2 + 0x1a]
sub ax, word [ecx + edi]
mov ecx, dword [ebx]
dec eax
and eax, 0xffff
mov ebp, eax
mov dword [esp + 0x1c], eax
sub ebp, edi
add ebp, edx
cmp ebp, ecx
jbe 0x477988
mov eax, dword [esp + 0x20]
test eax, eax
je 0x477b52
sub ecx, edx
add ecx, edi
mov edi, 0xffff86fc
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edi
mov eax, ecx
jmp 0x47798d
mov edi, 0xffff86fc
xor ecx, ecx
mov cl, byte [edx]
dec ecx
cmp ecx, 3
ja case.default.0x47799b
jmp dword [ecx*4 + 0x477c00]
cmp eax, 0xc
jae 0x4779b0
mov dword [esp + 0x10], edi
jmp 0x477b52
mov eax, dword [esp + 0x7c]
mov edx, dword [edx + 4]
mov edi, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x34]
push ecx
push eax
push edx
push edi
push ebx
call fcn.004789c0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x477a01
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push edi
push 0
push ecx
push edx
push 0x4c3e1c
lea eax, [esp + 0x5c]
push 0
push eax
mov dword [esp + 0x2c], esi
call fcn.00470f60
add esp, 0x1c
jmp 0x477b52
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push edi
push 0
push ecx
push edx
push 0x4c3e1c
lea eax, [esp + 0x44]
push 0
push eax
jmp 0x477bb0
cmp eax, 0xc
jae 0x477a2d
mov dword [esp + 0x10], edi
jmp 0x477b52
mov eax, dword [esp + 0x68]
mov edx, dword [edx + 4]
cmp edx, dword [eax + 0x1c]
ja 0x477a67
test byte [esp + 0x14], 1
je 0x477a67
mov ecx, dword [esp + 0x7c]
or ecx, 0x80000
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push ebx
call fcn.004427a0
jmp 0x477bb5
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push 0
push edx
push eax
push 0x4c3e1c
push 0
lea ecx, [esp + 0x60]
jmp 0x477baf
test byte [esp + 0x14], 1
jne 0x477aa4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test ecx, ecx
jne case.0x47799b.1
jmp 0x477b52
cmp eax, 5
jae 0x477ab2
mov dword [esp + 0x10], edi
jmp 0x477b52
xor ebx, ebx
cmp eax, 2
jbe 0x477b4e
jmp 0x477ac3
mov edx, dword [esp + 0x28]
mov dx, word [edx]
mov eax, dword [esp + 0x1c]
mov word [esp + 0x24], dx
mov ebp, dword [esp + 0x24]
add ebx, 2
lea ecx, [ebx + ebp]
cmp ecx, eax
jbe 0x477ae5
mov ebp, eax
sub ebp, ebx
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
lea esi, [ebx + edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x68]
mov ecx, eax
mov eax, dword [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x78]
push 0
push eax
push ecx
push 0x4c3e1c
lea edx, [esp + 0x44]
push 0
push edx
mov dword [esp + 0x50], ebp
call fcn.00470f60
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x477b3b
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x1c]
lea ebx, [ebx + ebp + 2]
lea eax, [ebx + 2]
cmp eax, ecx
jb 0x477abf
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x14], eax
jmp 0x477874
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x477b52
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
mov ecx, eax
lea esi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
push 0
push edx
push eax
push 0x4c3e1c
push 0
lea ecx, [esp + 0x48]
push ecx
call fcn.00470f60
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x477b52
mov dword [esp + 0x10], esi
jmp 0x477b52
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x14]
push edx
push eax
call fcn.0043ab30
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
call fcn.00472bd0
add esp, 0x10
test eax, eax
pop ebp
jne 0x477bf7
test esi, esi
jne 0x477bf5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x477bf7
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x50
ret