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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x1c], 0
cmp dword [esi], 0
jne 0x477064
push 0x14
push 0x188
push 0
push 0
call fcn.0042e920
add esp, 0x10
mov dword [esi], eax
test eax, eax
jne 0x477064
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov ecx, 0x62
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov ecx, 0x1e
lea edi, [esp + 0x140]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ebx, [ebx + eax*8 + 8]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push ecx
push esi
push 4
call fcn.0042c5e2
add esp, 0xc
test eax, eax
je 0x4770b3
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0042a880
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
jne 0x4770d8
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea edx, [edi + 0x10]
lea eax, [ebx + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov al, byte [esi]
movsx ecx, al
add ecx, 0xffffffd1
cmp ecx, 0x4e
ja case.0x477125.80
xor edx, edx
mov dl, byte [ecx + 0x47785c]
jmp dword [edx*4 + 0x477840]
movsx ecx, byte [esi + 1]
add ecx, 0xffffffbf
cmp ecx, 0x3d
ja case.0x477125.80
xor edx, edx
mov dl, byte [ecx + 0x4778ec]
jmp dword [edx*4 + 0x4778ac]
mov ecx, dword [esp + 0x14]
mov al, byte [esi + 1]
inc esi
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov byte [eax], 0
jmp 0x4774a3
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov dword [esp + 0x30], eax
add esp, 0x14
mov eax, 1
jmp 0x4771bd
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x70]
add esp, 0x14
and al, 0xfe
inc esi
mov dword [ebx + 0x70], eax
mov dword [esp + 0x10], esi
jmp 0x4774a3
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov dword [esp + 0x30], eax
add esp, 0x14
mov eax, 2
mov edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
or edx, eax
or ecx, eax
inc esi
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], ecx
mov dword [esp + 0x10], esi
jmp 0x4774a3
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x70]
add esp, 0x14
and al, 0xfd
inc esi
mov dword [ebx + 0x70], eax
mov dword [esp + 0x10], esi
jmp 0x4774a3
mov edx, dword [esp + 0x14]
mov byte [edx], 0x20
mov eax, dword [esp + 0x14]
inc eax
inc esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov byte [eax], 0
jmp 0x4774a3
push 0x3b
push esi
call fcn.005c0130
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4774a7
mov edx, dword [ebp + 0xc]
push edi
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.00476f50
add esi, 2
mov dword [esp + 0x30], eax
push esi
call fcn.005bf8fb
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
and eax, 0x3ff
and ecx, 0xfffff003
shl eax, 2
or eax, ecx
and edx, 0xfffff007
add esp, 0x18
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x10]
or edx, 4
mov dword [ebx + 0x74], edx
mov dword [esp + 0x10], eax
jmp 0x4774a3
push 0x3b
push esi
call fcn.005c0130
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4774a7
push edi
lea ecx, [esp + 0x18]
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
add esi, 2
mov dword [esp + 0x30], eax
push esi
call fcn.00424320
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 0x200000
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x70]
mov edi, dword [esp + 0x28]
or edx, eax
or ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x70], ecx
mov byte [eax], 1
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x4774a7
push 0x3b
push esi
call fcn.005c0130
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4774a7
add esi, 2
push esi
call fcn.005bf5f0
fstp qword [esp + 0x24]
fld qword [0x5d5448]
fcomp qword [esp + 0x24]
mov esi, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x10], esi
fnstsw ax
test ah, 1
je 0x4774a3
mov edx, dword [ebp + 0xc]
push edi
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.00476f50
mov dword [esp + 0x30], eax
mov al, byte [esi - 1]
add esp, 0x14
cmp al, 0x78
je 0x4773ad
cmp al, 0x58
je 0x4773ad
mov edx, dword [ebx + 0x74]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
or dh, 0x10
mov dword [ebx + 0x74], edx
mov edx, dword [ebx + 0x70]
and dh, 0xdf
mov dword [ebx], eax
or dh, 0x10
mov dword [ebx + 4], ecx
mov dword [ebx + 0x70], edx
jmp 0x4774a3
fld qword [esp + 0x20]
mov eax, dword [ebx + 0x70]
mov esi, dword [ebx + 0x74]
fmul qword [ebx + 8]
and ah, 0xef
or esi, 0x2000
or ah, 0x20
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x70], eax
fstp qword [ebx + 8]
jmp 0x4774a3
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
and ecx, 0xffff7ffd
and edx, 0xffff7ffd
add esp, 0x14
or ch, 0x40
or dh, 0x40
inc esi
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x70], edx
mov dword [esp + 0x10], esi
jmp 0x4774a3
lea eax, [esi + 2]
push eax
call fcn.005bf5f0
fstp qword [esp + 0x24]
push 0x3b
push esi
call fcn.005c0130
mov ecx, eax
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x4774a7
fld qword [0x5d7060]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x47749f
fld qword [0x5d7058]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x47749f
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [ebx + 0x18], ecx
add esp, 0x14
mov dword [ebx + 0x1c], edx
mov eax, 0x20000
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x70]
or edx, eax
or ecx, eax
mov dword [ebx + 0x70], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x74], edx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
mov dl, byte [esi]
mov eax, dword [esp + 0x1c]
inc esi
test dl, dl
mov dword [esp + 0x10], esi
je 0x477822
test eax, eax
je 0x4770ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3b
push esi
call fcn.005c0130
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4774a7
add esi, 2
push esi
call fcn.005bf5f0
mov edx, dword [ebp + 0xc]
push edi
fstp qword [esp + 0x28]
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00476f50
fld qword [esp + 0x38]
fcomp qword [0x5d5448]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
add esp, 0x18
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
fnstsw ax
test ah, 0x40
je 0x477528
xor eax, eax
jmp 0x47752d
mov eax, 1
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x70]
and eax, 1
and edx, 0xfffbffff
shl eax, 0x12
or eax, edx
mov edx, ecx
xor edx, eax
mov dword [ebx + 0x74], eax
mov eax, dword [esp + 0x10]
and edx, 0x40000
xor edx, ecx
mov dword [esp + 0x10], eax
mov dword [ebx + 0x70], edx
jmp 0x4774a3
push 0x3b
push esi
call fcn.005c0130
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4774a7
add esi, 2
push esi
call fcn.005bf8fb
mov esi, eax
add esp, 4
cmp esi, 3
jbe 0x4775cc
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
mov ecx, dword [ebx + 0x74]
and esi, 3
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x70]
shl esi, 0x16
and ecx, 0xff3fffff
mov edx, eax
or esi, ecx
add esp, 0x14
xor edx, esi
mov dword [ebx + 0x74], esi
and edx, 0xc00000
xor edx, eax
mov dword [ebx + 0x70], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x4774a3
push 0x3b
push esi
call fcn.005c0130
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4774a7
lea ecx, [esi + 2]
push ecx
call fcn.005bf5f0
fstp qword [esp + 0x24]
fld qword [0x5d5448]
fcomp qword [esp + 0x24]
add esp, 4
fnstsw ax
test ah, 1
je 0x4774a7
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], eax
add esp, 0x14
mov eax, 0x100000
jmp 0x47748b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
inc eax
cmp eax, 0xa
jge 0x4774a7
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov esi, dword [eax]
inc esi
mov ecx, esi
mov dword [eax], esi
mov esi, ebx
add ebx, 0x78
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8 + 8]
mov eax, dword [esp + 0x2c]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx - 4]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
and edx, 0xfff7ffff
mov dword [ebx - 4], edx
add eax, 0x78
mov dword [esp + 0x2c], eax
jmp 0x4774a7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
dec eax
test eax, eax
jg 0x4774a7
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
add esp, 0x14
sub ebx, 0x78
mov edx, dword [eax]
dec edx
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
sub eax, 0x78
mov dword [esp + 0x2c], eax
jmp 0x4774a7
mov ecx, dword [ebx + 0x70]
test ch, 0x40
je 0x477732
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00476f50
mov ecx, dword [ebx + 0x70]
add esp, 0x14
and ch, 0xbf
mov dword [esp + 0x1c], eax
or ch, 0x80
mov dword [ebx + 0x70], ecx
jmp 0x4774a7
cmp byte [esi + 1], 0x4a
jne case.0x477125.80
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x74]
or eax, 0x80000
xor ecx, ecx
mov dword [ebx + 0x74], eax
mov eax, dword [esp + 0x2c]
add esp, 0x14
inc esi
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [esp + 0x28], eax
mov dword [edx + 0xc], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0x10], esi
mov edi, eax
jmp 0x4774a7
mov ecx, dword [ebx + 0x70]
test ch, 0x40
je case.0x477125.80
mov ecx, dword [ebp + 0xc]
push edi
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00476f50
mov edx, dword [ebx + 0x70]
add esp, 0x14
and dh, 0xbf
mov dword [esp + 0x1c], eax
or edx, 0x18000
mov dword [ebx + 0x70], edx
jmp 0x4774a7
mov ecx, dword [ebx + 0x70]
test ch, 0xc0
jne 0x4777df
mov edx, dword [esp + 0x14]
mov byte [edx], al
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov byte [eax], 0
jmp 0x4774a7
mov edx, dword [ebp + 0xc]
push edi
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.00476f50
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x70]
add esp, 0x14
and eax, 0xfffe3fff
mov dword [ebx + 0x70], eax
jmp 0x4774a7
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov byte [eax], 0
jmp 0x4774a7
test eax, eax
jne 0x477839
mov ecx, dword [esp + 0x18]
mov esi, ebx
lea edi, [ecx + 0x110]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret