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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
mov ebp, dword [esi + 0xa0]
mov ebx, dword [esi + 0x9c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
cmp edx, ecx
jae 0x41649f
sub ecx, edx
dec ecx
jmp 0x4164a4
mov ecx, dword [esi + 0x78]
sub ecx, edx
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
cmp eax, 9
ja case.default.0x4164c3
mov edi, dword [esp + 0x44]
mov dword [esp + 0x1c], edi
jmp dword [eax*4 + 0x416d9c]
cmp ebx, 3
jae 0x416505
nop
mov eax, dword [esi + 0x18]
test eax, eax
je 0x416c72
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x1c], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
mov dword [esp + 0x44], edi
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 3
jb 0x4164d0
mov edx, dword [esp + 0x14]
mov ecx, ebp
and ecx, 7
mov eax, ecx
shr ecx, 1
and eax, 1
mov dword [esi + 0x98], eax
cmp ecx, 3
ja case.default.0x41651c
jmp dword [ecx*4 + 0x416dc4]
sub ebx, 3
shr ebp, 3
mov ecx, ebx
mov dword [esi + 0xa8], 1
and ecx, 7
shr ebp, cl
sub ebx, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xa8]
cmp eax, 9
jbe switch.0x004164c3
push 0xfffffffffffffffe
mov dword [esi + 0x80], edx
mov dword [esi + 0x9c], ebx
mov ecx, esi
mov dword [esi + 0xa0], ebp
call fcn.00415310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004158c0
push dword [esp + 0x28]
mov ecx, esi
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.00415ad0
mov dword [esi + 0x84], eax
test eax, eax
je 0x416c82
mov edx, dword [esp + 0x14]
shr ebp, 3
sub ebx, 3
mov dword [esi + 0xa8], 6
jmp case.default.0x41651c
shr ebp, 3
sub ebx, 3
mov dword [esi + 0xa8], 3
jmp case.default.0x41651c
cmp ebx, 0x20
jae 0x416625
jmp 0x4165f0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x416c72
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x1c], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
mov dword [esp + 0x44], edi
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 0x20
jb 0x4165f0
mov edx, dword [esp + 0x14]
mov eax, ebp
mov ecx, ebp
not eax
and ecx, 0xffff
shr eax, 0x10
cmp eax, ecx
jne 0x416cb6
xor ebx, ebx
mov dword [esi + 0x84], ecx
xor ebp, ebp
cmp ecx, ebx
je 0x41665a
mov eax, 2
mov dword [esi + 0xa8], eax
jmp case.default.0x41651c
mov eax, dword [esi + 0x98]
neg eax
sbb eax, eax
and eax, 7
mov dword [esi + 0xa8], eax
jmp case.default.0x41651c
cmp dword [esi + 0x18], 0
je 0x416cc7
test ecx, ecx
jne 0x416724
mov eax, dword [esi + 0x78]
cmp edx, eax
jne 0x4166b4
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x74]
cmp ecx, edx
je 0x4166b0
mov dword [esp + 0x14], edx
cmp edx, ecx
jae 0x4166a2
sub ecx, edx
dec ecx
jmp 0x4166a6
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x416724
jmp 0x4166b4
mov edx, dword [esp + 0x14]
push edi
mov ecx, esi
mov dword [esi + 0x80], edx
call fcn.00415310
mov edx, dword [esi + 0x7c]
mov edi, eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x14], eax
cmp eax, edx
jae 0x4166dc
mov ecx, edx
sub ecx, eax
dec ecx
jmp 0x4166e1
mov ecx, dword [esi + 0x78]
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x78]
cmp eax, ecx
jne 0x416714
mov eax, dword [esi + 0x74]
cmp edx, eax
je 0x416714
mov dword [esp + 0x14], eax
cmp eax, edx
jae 0x416708
mov ecx, edx
mov edx, eax
sub ecx, edx
dec ecx
mov dword [esp + 0x18], ecx
jmp 0x41671c
mov edx, dword [esp + 0x14]
sub ecx, edx
mov dword [esp + 0x18], ecx
jmp 0x41671c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x416cc7
mov edi, dword [esi + 0x84]
xor eax, eax
cmp edi, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
cmova edi, dword [esi + 0x18]
cmp edi, ecx
mov dword [esp + 0x44], eax
cmova edi, ecx
push edi
push dword [esi]
push edx
call fcn.00421610
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
add edx, edi
add dword [esi], edi
sub ecx, edi
sub dword [esi + 0x18], edi
sub dword [esi + 0x84], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
jne 0x416c6b
mov eax, dword [esi + 0x98]
mov edi, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 7
mov dword [esi + 0xa8], eax
jmp 0x416540
cmp ebx, 0xe
jae 0x4167d1
lea ebx, [ebx]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x416c72
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x1c], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 0xe
jb 0x4167a0
mov edx, dword [esp + 0x14]
mov eax, ebp
and eax, 0x3fff
mov ecx, eax
mov dword [esi + 0x8c], eax
and ecx, 0x1f
mov dword [esp + 0x44], ecx
cmp ecx, 0x1d
ja 0x416cb6
shr eax, 5
and eax, 0x1f
cmp eax, 0x1d
ja 0x416cb6
add eax, dword [esp + 0x44]
lea ecx, [esi + 0xac]
mov edx, dword [ecx]
push 1
lea eax, [eax*4 + 0x408]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x84], eax
test eax, eax
je 0x416c82
shr ebp, 0xe
sub ebx, 0xe
mov dword [esi + 0x90], 0
mov dword [esi + 0xa8], 4
mov eax, dword [esi + 0x8c]
shr eax, 0xa
add eax, 4
cmp dword [esi + 0x90], eax
jae 0x4168c8
cmp ebx, 3
jae 0x41688d
lea ecx, [ecx]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x416c72
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x1c], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 3
jb 0x416860
mov eax, dword [esi + 0x90]
mov edx, ebp
and edx, 7
shr ebp, 3
sub ebx, 3
mov ecx, dword [eax*4 + 0x43d760]
mov eax, dword [esi + 0x84]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
shr eax, 0xa
add eax, 4
cmp dword [esi + 0x90], eax
jb 0x416858
cmp dword [esi + 0x90], 0x13
jae 0x4168fa
mov eax, dword [esi + 0x90]
mov ecx, dword [eax*4 + 0x43d760]
mov eax, dword [esi + 0x84]
mov dword [eax + ecx*4], 0
inc dword [esi + 0x90]
cmp dword [esi + 0x90], 0x13
jb 0x4168d1
push 0
lea eax, [esi + 0x94]
mov ecx, esi
mov dword [eax], 7
push eax
lea eax, [esi + 0x88]
push eax
push 0
push 0
push 0x13
push 0x13
push dword [esi + 0x84]
call fcn.00415400
cmp eax, 0xfffffffb
je 0x416cd4
test eax, eax
jne 0x416ccd
mov dword [esi + 0x90], eax
mov dword [esi + 0xa8], 5
mov ecx, dword [esi + 0x8c]
mov eax, ecx
mov edi, dword [esi + 0x90]
and ecx, 0x1f
shr eax, 5
add ecx, 0x102
and eax, 0x1f
add eax, ecx
cmp edi, eax
jae 0x416afa
lea ecx, [ecx]
mov ecx, dword [esi + 0x94]
cmp ebx, ecx
jae 0x4169b4
lea ebx, [ebx]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x416cf3
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
add ebx, 8
mov dword [esp + 0x1c], 0
movzx eax, byte [edx]
shl eax, cl
mov ecx, dword [esi + 0x94]
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, ecx
jb 0x416980
mov ecx, dword [ecx*4 + 0x43cb90]
mov eax, dword [esi + 0x88]
and ecx, ebp
movzx edx, byte [eax + ecx*8 + 1]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], eax
cmp eax, 0x10
jae 0x4169f7
mov eax, dword [esi + 0x84]
mov ecx, edx
shr ebp, cl
sub ebx, edx
mov ecx, dword [esp + 0x20]
mov dword [eax + edi*4], ecx
inc dword [esi + 0x90]
jmp 0x416ad3
mov ecx, 7
cmp eax, 0x12
je 0x416a04
lea ecx, [eax - 0xe]
xor edx, edx
mov dword [esp + 0x24], ecx
cmp eax, 0x12
mov eax, dword [esp + 0x44]
sete dl
add eax, ecx
lea edx, [edx*8 + 3]
mov dword [esp + 0x18], edx
cmp ebx, eax
jae 0x416a5f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x416cf3
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
add ebx, 8
mov dword [esp + 0x1c], 0
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x44]
cmp ebx, eax
jb 0x416a25
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
shr ebp, cl
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx*4 + 0x43cb90]
and eax, ebp
shr ebp, cl
add edx, eax
mov eax, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esi + 0x8c]
sub ebx, eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0x1f
add ecx, 0x102
add ecx, eax
lea eax, [edx + edi]
cmp eax, ecx
ja 0x416d07
cmp dword [esp + 0x20], 0x10
jne 0x416abe
cmp edi, 1
jb 0x416d07
mov eax, dword [esi + 0x84]
mov ecx, dword [eax + edi*4 - 4]
jmp 0x416ac0
xor ecx, ecx
mov eax, dword [esi + 0x84]
mov dword [eax + edi*4], ecx
inc edi
dec edx
jne 0x416ac0
mov dword [esi + 0x90], edi
mov ecx, dword [esi + 0x8c]
mov eax, ecx
mov edi, dword [esi + 0x90]
and ecx, 0x1f
shr eax, 5
add ecx, 0x102
and eax, 0x1f
add eax, ecx
cmp edi, eax
jb 0x416970
mov edi, dword [esi + 0x8c]
lea edx, [esp + 0x44]
mov ecx, dword [esi + 0x84]
mov eax, edi
push 0
push edx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], ecx
push edx
push 0x43d694
push 0x43d6d4
and eax, 0x1f
mov dword [esi + 0x88], 0
add eax, 0x101
mov dword [esp + 0x58], 9
push 0x101
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x44], 6
mov dword [esp + 0x40], eax
call fcn.00415400
test eax, eax
jne 0x416b8c
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x28]
shr edi, 5
push eax
lea eax, [esp + 0x44]
and edi, 0x1f
push eax
mov eax, dword [esp + 0x2c]
inc edi
push 0x43d394
push 0x43d658
push 0
lea eax, [ecx + eax*4]
mov ecx, esi
push edi
push eax
call fcn.00415400
cmp eax, 0xfffffffb
je 0x416cd4
test eax, eax
jne 0x416d22
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xac]
push 1
push 0x1c
call dword [eax + 4]
mov edx, eax
test edx, edx
je 0x416c82
mov cl, byte [esp + 0x44]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov byte [edx + 0x18], cl
mov ecx, dword [esp + 0x38]
mov byte [edx + 0x19], al
mov eax, dword [esp + 0x3c]
mov dword [edx], 0
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0xa8], 6
push edi
mov ecx, esi
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x80], edx
call fcn.00415e20
cmp eax, 1
jne 0x416d74
mov edx, dword [esi + 0x80]
xor edi, edi
mov ecx, dword [esi + 0x7c]
mov ebp, dword [esi + 0xa0]
mov ebx, dword [esi + 0x9c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
cmp edx, ecx
jae 0x416c47
sub ecx, edx
dec ecx
jmp 0x416c4c
mov ecx, dword [esi + 0x78]
sub ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x98], edi
jne 0x416d29
mov dword [esi + 0xa8], edi
jmp 0x416540
xor edi, edi
jmp 0x416540
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x80], ecx
push edi
jmp 0x416557
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x80], ecx
push 0xfffffffffffffffc
jmp 0x416557
lea eax, [ebx - 3]
mov dword [esi + 0xa8], 9
shr ebp, 3
mov dword [esi + 0x9c], eax
mov dword [esi + 0x80], edx
push 0xfffffffffffffffd
jmp 0x41655d
mov dword [esi + 0xa8], 9
push 0xfffffffffffffffd
jmp 0x416551
push edi
jmp 0x416551
cmp eax, 0xfffffffd
jne 0x416ce3
jmp 0x416cd9
mov eax, 0xfffffffd
mov dword [esi + 0xa8], 9
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x80], ecx
push eax
jmp 0x416557
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x80], ecx
push eax
jmp 0x416557
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xa8], 9
mov dword [esi + 0x80], ecx
push 0xfffffffffffffffd
jmp 0x416557
cmp eax, 0xfffffffd
jne 0x416ce3
jmp 0x416cd9
cmp ebx, 7
jbe 0x416d36
inc dword [esi + 0x18]
sub ebx, 8
dec dword [esi]
mov dword [esi + 0xa8], 7
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004170e0
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x80]
je 0x416d86
mov eax, dword [esp + 0x24]
push dword [esp + 0x44]
mov dword [esi + 0x80], eax
jmp 0x416557
push eax
mov ecx, esi
call fcn.00415310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
mov edx, dword [esp + 0x24]
mov dword [esi + 0xa8], 8
push 1
jmp 0x416551