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

Disassembly:
sub esp, 0x30
push ebx
xor eax, eax
mov dword [esp + 0x1c], 8
push ebp
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
xor ebp, ebp
push esi
push edi
xor edx, edx
mov dword [esp + 0x10], ecx
xor edi, edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
cmp byte [eax + 0x1e], cl
je 0x4079f3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x407d1b
mov edx, dword [esp + 0x44]
mov ebp, eax
nop dword [eax + eax]
movzx ecx, byte [edx]
inc edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [ecx - 0xf9]
cmp eax, 6
ja case.0x40785b.252
jmp dword [eax*4 + 0x407e0c]
movzx ecx, byte [edx + 1]
movzx esi, byte [edx + 2]
mov eax, ecx
movzx edi, byte [edx]
and eax, 0xf0
shl eax, 4
and ecx, 0xf
or edi, eax
mov dword [esp + 0x14], 0xc
mov eax, esi
mov dword [esp + 0x10], esi
and eax, 0x1f
add ebx, ecx
shl eax, 4
mov ecx, esi
add edx, 3
add ebx, eax
shr ecx, 5
jmp 0x4079de
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
add ebx, eax
movzx eax, byte [edx + 2]
mov edi, ecx
mov esi, eax
shr ecx, 5
and esi, 0x1f
and edi, 0x1f
add edx, 3
mov dword [esp + 0x20], esi
shr eax, 5
mov dword [esp + 0x1c], eax
jmp 0x4079d6
movzx eax, byte [edx]
add ebx, dword [edx + 1]
mov esi, eax
mov edi, dword [edx + 5]
add edx, 5
and esi, 7
shr eax, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x1f
cmp ecx, 0xfa
jne 0x407901
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
xor eax, eax
cmp ecx, 0xfa
mov ecx, dword [esp + 0x10]
sete al
lea eax, [eax*4 + 4]
add edx, eax
jmp 0x4079e2
movzx eax, byte [edx]
add ebx, dword [edx + 1]
mov ecx, eax
shr eax, 4
and ecx, 7
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 5]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 9]
add edx, 0xd
mov dword [esp + 0x24], edx
add edx, eax
mov dword [esp + 0x2c], eax
xor edi, edi
jmp 0x4079de
mov ecx, dword [esp + 0x10]
lea ebx, [ebp + 1]
jmp 0x4079e2
test cl, cl
js 0x4079c5
mov eax, ecx
mov esi, ecx
shr eax, 4
and eax, 7
mov dword [esp + 0x10], eax
and esi, 0xf
je 0x40797d
add ebx, esi
mov ecx, eax
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x4079e2
mov eax, ecx
and al, 0x70
cmp al, 0x10
jne 0x407993
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 7
jmp 0x4079e2
mov eax, ecx
and al, 0x70
cmp al, 0x20
jne 0x4079a9
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 6
jmp 0x4079e2
mov eax, dword [esp + 0x28]
and cl, 0x70
cmp cl, 0x40
mov ecx, 3
cmove eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x4079e2
movzx edi, byte [edx]
and ecx, 0x7f
add ebx, ecx
inc edx
mov ecx, edi
shr ecx, 5
and edi, 0x1f
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], ecx
cmp ebx, ebp
jb 0x407830
mov ebp, dword [esp + 0x18]
jmp 0x407d17
mov eax, dword [esp + 0x44]
mov ecx, esi
mov dword [esp + 0x38], ebx
mov edx, esi
shr ecx, 4
neg edx
sbb edx, edx
and edx, ecx
mov ecx, esi
and ecx, 0xf
mov dword [esp + 0x30], edx
movzx edx, byte [eax]
neg esi
sbb esi, esi
inc eax
and esi, ecx
mov dword [esp + 0x44], esi
xor esi, esi
mov dword [esp + 0x34], esi
test dl, dl
js 0x407ade
test dl, 0x40
jne 0x407a76
test dl, 0x20
jne 0x407a41
and edx, 0x1f
lea ebp, [esi + 1]
add ebx, edx
jmp 0x407a62
mov cl, byte [eax]
inc eax
movzx ebp, cl
test cl, cl
jns 0x407a62
and ebp, 0x7f
nop
mov dl, byte [eax]
inc eax
movzx ecx, dl
and ecx, 0x7f
shl ebp, 7
add ebp, ecx
test dl, dl
js 0x407a50
cmp ebx, dword [esp + 0x48]
ja 0x407d0b
add dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x18]
jmp 0x407ac5
test dl, 0x3f
je 0x407a9a
mov ecx, edx
and ecx, 0xf
add ebx, ecx
cmp ebx, dword [esp + 0x48]
ja 0x407d0f
shr edx, 4
and edx, 3
sub ebp, edx
mov dword [esp + 0x18], ebp
jmp 0x407ac5
cmp ebx, dword [esp + 0x48]
jae 0x407d13
mov cl, byte [eax]
inc eax
movzx edi, cl
test cl, cl
jns 0x407ac3
and edi, 0x7f
mov dl, byte [eax]
inc eax
movzx ecx, dl
and ecx, 0x7f
shl edi, 7
add edi, ecx
test dl, dl
js 0x407ab1
add ebx, edi
xor edx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
xor edi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edx
jmp 0x407c96
mov ecx, edx
shr ecx, 4
and ecx, 7
sub ecx, 5
je 0x407ca2
sub ecx, 1
je 0x407c27
sub ecx, 1
je 0x407b78
and edx, 0x7f
mov edx, dword [edx*4 + 0x611ef8]
movzx ecx, dl
mov dword [esp + 0x18], ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x38], ecx
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x48]
shr edx, 0x18
cmp ebx, ecx
jne 0x407b39
test edx, edx
jne 0x407d13
add ebx, edx
cmp ebx, ecx
ja 0x407d13
mov ecx, dword [esp + 0x38]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 2
jmp 0x4079f7
mov ecx, edx
and ecx, 0xc
movzx ecx, byte [ecx + 0x407e3c]
jmp dword [ecx*4 + 0x407e28]
mov ecx, edx
mov edx, dword [esp + 0x44]
and ecx, 0xf
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
mov cl, byte [eax]
inc eax
movzx edi, cl
test cl, cl
jns 0x407c57
and edi, 0x7f
mov dl, byte [eax]
inc eax
movzx ecx, dl
and ecx, 0x7f
shl edi, 7
add edi, ecx
test dl, dl
js 0x407c45
mov cl, byte [eax]
sub ebp, edi
inc eax
mov dword [esp + 0x18], ebp
movzx edi, cl
test cl, cl
jns 0x407c82
and edi, 0x7f
nop word [eax + eax]
mov dl, byte [eax]
inc eax
movzx ecx, dl
and ecx, 0x7f
shl edi, 7
add edi, ecx
test dl, dl
js 0x407c70
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0x20
cmp ebx, dword [esp + 0x48]
jbe 0x4079f7
jmp 0x407d1f
movzx ecx, byte [eax]
and edx, 0xf
mov dword [esp + 0x38], ecx
inc eax
shr ecx, 6
mov ecx, dword [ecx*4 + 0x612038]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x48]
cmp ebx, ecx
jne 0x407cc9
cmp dword [esp + 0x34], esi
ja 0x407d13
add ebx, dword [esp + 0x34]
cmp ebx, ecx
ja 0x407d13
mov edi, dword [esp + 0x38]
mov ecx, edi
shr ecx, 3
and ecx, 7
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
sub ebp, ecx
mov ecx, dword [esp + 0x30]
and edi, 7
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 3
jmp 0x4079f7
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
cmp ebx, eax
je 0x407d5d
mov edi, dword [esp + 0x4c]
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
xor edx, edx
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [edi + 0x60], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x68], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jmp 0x407dce
mov ebx, dword [esp + 0x10]
and ecx, 1
shl ecx, 7
mov edx, ecx
or edx, 0x40
test bl, 2
cmove edx, ecx
mov ecx, edx
or ecx, 8
test bl, 4
cmove ecx, edx
mov eax, ecx
or eax, 0x20
test bl, 8
mov ebx, dword [esp + 0x1c]
cmove eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x78], edi
mov edi, ecx
mov dword [ecx + 0x60], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov dword [edi + 0x68], ecx
mov ecx, ebx
and ecx, 1
shl ecx, 7
mov edx, ecx
or edx, 0x40
test bl, 2
cmove edx, ecx
mov ecx, edx
or ecx, 8
test bl, 4
cmove ecx, edx
xor esi, esi
mov edx, ecx
or edx, 0x20
test bl, 8
cmove edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x7c], 0
mov dword [edi + 0x64], edx
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x84], esi
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x5c], eax
lea eax, [ebp*4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc