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

Disassembly:
sub esp, 0xfc
mov eax, dword [esp + 0x100]
mov eax, dword [eax]
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x1c], eax
shr eax, 0xb
and eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
shr eax, 9
and eax, 1
mov dword [esp + 0xb8], eax
xor eax, 1
push ebx
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0xc0], eax
mov eax, 0xfffffffe
push ebp
mov ebp, dword [esp + 0x124]
xor edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
push esi
push edi
mov edi, dword [ecx]
xor esi, esi
xor ecx, ecx
and eax, 1
shl eax, 8
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], edi
movzx eax, byte [edi]
mov dword [esp + 0x20], eax
cmp eax, edx
jne 0x4748e6
cmp dword [esp + 0x68], edx
je 0x4748e6
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], edi
movzx eax, byte [edi]
mov dword [esp + 0x68], edx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x130], edx
je 0x4749ac
mov ecx, dword [ebp + 0x10]
add ecx, 0xf9c
cmp ebx, ecx
ja 0x477dfb
mov eax, dword [esp + 0xa0]
cmp ebx, eax
jae 0x474915
mov dword [esp + 0x14], eax
mov ebx, eax
mov edx, dword [esp + 0x130]
mov eax, dword [edx]
mov ecx, ebx
sub ecx, dword [esp + 0xa0]
mov edx, 0x7fffffeb
sub edx, eax
cmp edx, ecx
jl 0x477e1e
sub eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x130]
add eax, ebx
xor edx, edx
mov dword [ecx], eax
cmp esi, edx
je 0x474992
cmp esi, dword [esp + 0xb0]
jbe 0x47499f
mov edi, dword [esp + 0xb0]
mov edx, ebx
sub edx, esi
push edx
push esi
push edi
call fcn.004879a0
mov ecx, dword [esp + 0x78]
mov eax, edi
sub eax, esi
add ebx, eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], ebx
xor edx, edx
mov dword [esp + 0xa0], ebx
jmp 0x4749bd
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x14], ecx
mov ebx, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xa0], ebx
jmp 0x4749bd
mov eax, dword [ebp + 0x10]
add eax, 0xf9c
cmp dword [ebp + 0x24], eax
ja 0x477e41
cmp dword [esp + 0x5c], edx
je 0x474b4c
cmp dword [esp + 0x20], edx
je 0x474b4c
cmp dword [esp + 0x20], 0x5c
jne 0x4749ef
cmp byte [edi + 1], 0x45
jne 0x4749ef
mov ecx, dword [esp + 0x6c]
inc edi
mov dword [esp + 0x5c], edx
inc edi
xor edx, edx
jmp 0x4748be
cmp ecx, edx
je 0x474a25
cmp dword [esp + 0x130], edx
jne 0x474a21
movzx edx, byte [ecx + 6]
movzx eax, byte [ecx + 7]
shl edx, 8
or edx, eax
mov eax, edi
sub eax, edx
sub eax, dword [ebp + 0x18]
mov edx, eax
sar edx, 8
mov byte [ecx + 8], dl
mov byte [ecx + 9], al
mov edi, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x6c], edx
test dword [esp + 0x2c], 0x4000
je case.default.0x474cac
mov byte [ebx], 0x53
mov byte [ebx + 1], 0xff
mov dword [ebx + 2], edx
mov eax, edi
mov ecx, eax
sub ecx, dword [ebp + 0x18]
mov dword [esp + 0x6c], ebx
sar ecx, 8
mov byte [ebx + 6], cl
sub al, byte [ebp + 0x18]
mov word [ebx + 8], 0
mov byte [ebx + 7], al
mov edi, dword [esp + 0x10]
add ebx, 0xa
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x20]
mov ebp, 1
mov byte [esp + 0xa8], al
je 0x474aa8
cmp eax, 0xc0
jl 0x474aa8
mov cl, byte [edi + 1]
inc edi
and cl, 0xc0
cmp cl, 0x80
jne 0x474aa8
jmp 0x474a90
mov dword [esp + 0x10], edi
mov dl, byte [edi]
mov al, byte [edi + 1]
inc edi
mov byte [esp + ebp + 0xa8], dl
and al, 0xc0
inc ebp
cmp al, 0x80
je 0x474a90
mov cl, byte [esp + 0x2c]
and cl, 1
or cl, 0x1c
mov dword [esp + 0x18], ebx
mov byte [ebx], cl
inc ebx
mov dword [esp + 0x14], ebx
test ebp, ebp
jle 0x474ad9
push ebp
lea edx, [esp + 0xac]
push edx
push ebx
call fcn.0048a360
add esp, 0xc
add ebx, ebp
mov dword [esp + 0x14], ebx
mov cl, byte [esp + 0xa8]
cmp cl, 0xd
je 0x474aea
cmp cl, 0xa
jne 0x474af5
mov eax, dword [esp + 0x12c]
or dword [eax + 0x48], 0x20
mov eax, dword [esp + 0x38]
cmp eax, 0xfffffffe
jne 0x477d9c
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x40], eax
cmp ebp, 1
je 0x477d60
cmp dword [esp + 0x74], 0
je 0x477d60
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x12c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
or eax, 0xffffffff
inc edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], eax
xor edx, edx
jmp 0x4748be
mov eax, dword [esp + 0x20]
cmp eax, 0x2a
je 0x474bc9
cmp eax, 0x2b
je 0x474bc9
cmp eax, 0x3f
je 0x474bc9
cmp eax, 0x7b
jne 0x474b70
lea eax, [edi + 1]
call fcn.00472350
test eax, eax
jne 0x474bc9
mov ecx, dword [esp + 0x6c]
xor edx, edx
mov dword [esp + 0x24], edx
cmp ecx, edx
je 0x474bd3
mov eax, dword [esp + 0xc0]
mov edx, eax
dec eax
mov dword [esp + 0xc0], eax
test edx, edx
jg 0x474bd1
xor edx, edx
cmp dword [esp + 0x130], edx
jne 0x474bc3
movzx edx, byte [ecx + 6]
movzx eax, byte [ecx + 7]
shl edx, 8
or edx, eax
mov eax, edi
sub eax, edx
sub eax, dword [ebp + 0x18]
mov edx, eax
sar edx, 8
mov byte [ecx + 8], dl
mov byte [ecx + 9], al
mov edi, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x6c], edx
jmp 0x474bd3
mov dword [esp + 0x24], 1
xor edx, edx
test byte [esp + 0x2c], 8
je 0x474c56
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
test byte [ecx + eax], 1
jne 0x475c68
cmp ecx, 0x23
jne 0x474c54
inc edi
mov dword [esp + 0x10], edi
mov al, byte [edi]
test al, al
je 0x474c4c
jmp 0x474c00
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x474cb3
mov eax, dword [ebp + 0x1c]
cmp edi, eax
jae 0x474cdd
mov ebx, dword [esp + 0x34]
lea edx, [ebp + 0x5c]
push edx
push eax
push ecx
call fcn.00485780
mov esi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x474cd9
mov ecx, dword [ebp + 0x5c]
mov ebx, dword [esp + 0x14]
lea edi, [edi + ecx - 1]
mov dword [esp + 0x10], edi
cmp byte [edi], 0
jne 0x475c68
mov dword [esp + 0x20], 0
xor edx, edx
test dword [esp + 0x2c], 0x4000
je 0x474c98
cmp dword [esp + 0x24], edx
jne 0x474c98
mov byte [ebx], 0x53
mov byte [ebx + 1], 0xff
mov dword [ebx + 2], edx
mov eax, edi
mov ecx, eax
sub ecx, dword [ebp + 0x18]
mov dword [esp + 0x6c], ebx
sar ecx, 8
mov byte [ebx + 6], cl
sub al, byte [ebp + 0x18]
mov word [ebx + 8], 0
mov byte [ebx + 7], al
mov edi, dword [esp + 0x10]
add ebx, 0xa
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x7c
ja case.default.0x474cac
movzx eax, byte [eax + 0x477788]
jmp dword [eax*4 + 0x477754]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x1c]
sub edx, ecx
cmp edi, edx
ja 0x474cdd
cmp al, byte [ebp + 0x60]
jne 0x474cdd
cmp ecx, 1
je 0x474c34
mov al, byte [edi + 1]
cmp al, byte [ebp + 0x61]
je 0x474c34
mov ebx, dword [esp + 0x14]
inc edi
mov dword [esp + 0x10], edi
mov al, byte [edi]
test al, al
jne 0x474c00
jmp 0x474c4c
mov ebp, dword [esp + 0x12c]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
inc edi
xor edx, edx
jmp 0x4748be
insb byte es:[edi], dx
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x18]
inc edi
xor edx, edx
jmp 0x4748be
movzx eax, cl
or eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
cmp ebp, 1
je 0x475c59
movzx eax, byte [ebx - 1]
mov ecx, dword [esp + 0x12c]
or eax, dword [ecx + 0x4c]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ebp, ecx
mov ecx, dword [esp + 0x6c]
inc edi
mov dword [esp + 0x50], eax
xor edx, edx
jmp 0x4748be
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], edx
cmp ebp, 1
je 0x477db8
cmp dword [esp + 0x74], 0
jne 0x475c59
movzx eax, byte [ebx - 1]
mov ecx, dword [esp + 0x12c]
or eax, dword [ecx + 0x4c]
mov edi, dword [esp + 0x10]
or eax, dword [esp + 0x74]
mov esi, dword [esp + 0x18]
mov ebp, ecx
mov ecx, dword [esp + 0x6c]
inc edi
mov dword [esp + 0x50], eax
xor edx, edx
jmp 0x4748be
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov dword [edx], 0x34
xor eax, eax
pop ebx
add esp, 0xfc
ret
mov eax, dword [esp + 0x11c]
mov dword [eax], 0x14
mov eax, dword [esp + 0x118]
mov dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xfc
ret
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x11c]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov dword [ecx], 0x34
xor eax, eax
pop ebx
add esp, 0xfc
ret