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

Disassembly:
sub esp, 0x2c
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 + 0x10], edx
mov dword [esp + 0x1c], edx
cmp edx, ecx
jae 0x4186df
sub ecx, edx
dec ecx
jmp 0x4186e4
mov ecx, dword [esi + 0x78]
sub ecx, edx
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x14], ecx
cmp eax, 9
ja case.default.0x418700
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
nop
jmp dword [eax*4 + 0x418fd8]
cmp ebx, 3
jae 0x418745
lea esp, [esp]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418eae
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x18], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
mov dword [esp + 0x40], edi
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 3
jb 0x418710
mov edx, dword [esp + 0x10]
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.0x41875c
jmp dword [ecx*4 + 0x419000]
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 + 0x14]
mov eax, dword [esi + 0xa8]
cmp eax, 9
jbe switch.0x00418700
push 0xfffffffffffffffe
mov dword [esi + 0x80], edx
mov dword [esi + 0x9c], ebx
mov ecx, esi
mov dword [esi + 0xa0], ebp
call fcn.0041a060
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0041a430
push dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.00419b10
mov dword [esi + 0x84], eax
test eax, eax
je 0x418ebe
mov edx, dword [esp + 0x10]
shr ebp, 3
sub ebx, 3
mov dword [esi + 0xa8], 6
jmp case.default.0x41875c
shr ebp, 3
sub ebx, 3
mov dword [esi + 0xa8], 3
jmp case.default.0x41875c
cmp ebx, 0x20
jae 0x418865
jmp 0x418830
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418eae
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x18], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
mov dword [esp + 0x40], edi
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 0x20
jb 0x418830
mov edx, dword [esp + 0x10]
mov eax, ebp
mov ecx, ebp
not eax
and ecx, 0xffff
shr eax, 0x10
cmp eax, ecx
jne 0x418ef2
xor ebx, ebx
mov dword [esi + 0x84], ecx
xor ebp, ebp
cmp ecx, ebx
je 0x41889a
mov eax, 2
mov dword [esi + 0xa8], eax
jmp case.default.0x41875c
mov eax, dword [esi + 0x98]
neg eax
sbb eax, eax
and eax, 7
mov dword [esi + 0xa8], eax
jmp case.default.0x41875c
cmp dword [esi + 0x18], 0
je 0x418f03
test ecx, ecx
jne 0x418964
mov eax, dword [esi + 0x78]
cmp edx, eax
jne 0x4188f4
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x74]
cmp ecx, edx
je 0x4188f0
mov dword [esp + 0x10], edx
cmp edx, ecx
jae 0x4188e2
sub ecx, edx
dec ecx
jmp 0x4188e6
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x418964
jmp 0x4188f4
mov edx, dword [esp + 0x10]
push edi
mov ecx, esi
mov dword [esi + 0x80], edx
call fcn.0041a060
mov edx, dword [esi + 0x7c]
mov edi, eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x10], eax
cmp eax, edx
jae 0x41891c
mov ecx, edx
sub ecx, eax
dec ecx
jmp 0x418921
mov ecx, dword [esi + 0x78]
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x78]
cmp eax, ecx
jne 0x418954
mov eax, dword [esi + 0x74]
cmp edx, eax
je 0x418954
mov dword [esp + 0x10], eax
cmp eax, edx
jae 0x418948
mov ecx, edx
mov edx, eax
sub ecx, edx
dec ecx
mov dword [esp + 0x14], ecx
jmp 0x41895c
mov edx, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x14], ecx
jmp 0x41895c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x418f03
mov edi, dword [esi + 0x84]
xor eax, eax
cmp edi, dword [esi + 0x18]
mov dword [esp + 0x18], eax
cmova edi, dword [esi + 0x18]
cmp edi, ecx
mov dword [esp + 0x40], eax
cmova edi, ecx
push edi
push dword [esi]
push edx
call fcn.00423750
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
add edx, edi
add dword [esi], edi
sub ecx, edi
sub dword [esi + 0x18], edi
sub dword [esi + 0x84], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
jne 0x418ea7
mov eax, dword [esi + 0x98]
mov edi, dword [esp + 0x18]
neg eax
sbb eax, eax
and eax, 7
mov dword [esi + 0xa8], eax
jmp 0x418780
cmp ebx, 0xe
jae 0x418a11
jmp 0x4189e0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418eae
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x18], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 0xe
jb 0x4189e0
mov edx, dword [esp + 0x10]
mov eax, ebp
and eax, 0x3fff
mov ecx, eax
mov dword [esi + 0x8c], eax
and ecx, 0x1f
mov dword [esp + 0x40], ecx
cmp ecx, 0x1d
ja 0x418ef2
shr eax, 5
and eax, 0x1f
cmp eax, 0x1d
ja 0x418ef2
add eax, dword [esp + 0x40]
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 + 0x18]
mov dword [esi + 0x84], eax
test eax, eax
je 0x418ebe
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 0x418b08
cmp ebx, 3
jae 0x418acd
lea ecx, [ecx]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418eae
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
xor edi, edi
add ebx, 8
mov dword [esp + 0x18], edi
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
cmp ebx, 3
jb 0x418aa0
mov eax, dword [esi + 0x90]
mov edx, ebp
and edx, 7
shr ebp, 3
sub ebx, 3
mov ecx, dword [eax*4 + 0x440988]
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 0x418a98
cmp dword [esi + 0x90], 0x13
jae 0x418b3a
mov eax, dword [esi + 0x90]
mov ecx, dword [eax*4 + 0x440988]
mov eax, dword [esi + 0x84]
mov dword [eax + ecx*4], 0
inc dword [esi + 0x90]
cmp dword [esi + 0x90], 0x13
jb 0x418b11
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.00419010
cmp eax, 0xfffffffb
je 0x418f10
test eax, eax
jne 0x418f09
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 0x418d3a
lea ecx, [ecx]
mov ecx, dword [esi + 0x94]
cmp ebx, ecx
jae 0x418bf4
lea ebx, [ebx]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418f2f
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
add ebx, 8
mov dword [esp + 0x18], 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 0x418bc0
mov ecx, dword [ecx*4 + 0x439738]
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 + 0x40], edx
mov dword [esp + 0x14], eax
cmp eax, 0x10
jae 0x418c37
mov eax, dword [esi + 0x84]
mov ecx, edx
shr ebp, cl
sub ebx, edx
mov ecx, dword [esp + 0x14]
mov dword [eax + edi*4], ecx
inc dword [esi + 0x90]
jmp 0x418d13
mov ecx, 7
cmp eax, 0x12
je 0x418c44
lea ecx, [eax - 0xe]
xor edx, edx
mov dword [esp + 0x1c], ecx
cmp eax, 0x12
mov eax, dword [esp + 0x40]
sete dl
add eax, ecx
lea edx, [edx*8 + 3]
mov dword [esp + 0x30], edx
cmp ebx, eax
jae 0x418c9f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x418f2f
mov edx, dword [esi]
dec eax
mov dword [esi + 0x18], eax
mov ecx, ebx
add ebx, 8
mov dword [esp + 0x18], 0
movzx eax, byte [edx]
shl eax, cl
or ebp, eax
lea eax, [edx + 1]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x40]
cmp ebx, eax
jb 0x418c65
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
shr ebp, cl
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx*4 + 0x439738]
and eax, ebp
shr ebp, cl
add edx, eax
mov eax, dword [esp + 0x40]
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 0x418f43
cmp dword [esp + 0x14], 0x10
jne 0x418cfe
cmp edi, 1
jb 0x418f43
mov eax, dword [esi + 0x84]
mov ecx, dword [eax + edi*4 - 4]
jmp 0x418d00
xor ecx, ecx
mov eax, dword [esi + 0x84]
mov dword [eax + edi*4], ecx
inc edi
dec edx
jne 0x418d00
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 0x418bb0
mov edi, dword [esi + 0x8c]
lea edx, [esp + 0x40]
mov ecx, dword [esi + 0x84]
mov eax, edi
push 0
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], ecx
push edx
push 0x440a14
push 0x4409d4
and eax, 0x1f
mov dword [esi + 0x88], 0
add eax, 0x101
mov dword [esp + 0x54], 9
push 0x101
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 6
mov dword [esp + 0x50], eax
call fcn.00419010
test eax, eax
jne 0x418dcc
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x20]
shr edi, 5
push eax
lea eax, [esp + 0x40]
and edi, 0x1f
push eax
mov eax, dword [esp + 0x3c]
inc edi
push 0x440a90
push 0x440a54
push 0
lea eax, [ecx + eax*4]
mov ecx, esi
push edi
push eax
call fcn.00419010
cmp eax, 0xfffffffb
je 0x418f10
test eax, eax
jne 0x418f5e
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xac]
push 1
push 0x1c
call dword [eax + 4]
mov edx, eax
test edx, edx
je 0x418ebe
mov cl, byte [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov byte [edx + 0x18], cl
mov ecx, dword [esp + 0x34]
mov byte [edx + 0x19], al
mov eax, dword [esp + 0x38]
mov dword [edx], 0
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x10]
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.004194d0
cmp eax, 1
jne 0x418fb0
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 + 0x18], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
cmp edx, ecx
jae 0x418e87
sub ecx, edx
dec ecx
jmp 0x418e8c
mov ecx, dword [esi + 0x78]
sub ecx, edx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x98], edi
jne 0x418f65
mov dword [esi + 0xa8], edi
jmp 0x418780
xor edi, edi
jmp 0x418780
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x80], ecx
push edi
jmp 0x418797
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x80], ecx
push 0xfffffffffffffffc
jmp 0x418797
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 0x41879d
mov dword [esi + 0xa8], 9
push 0xfffffffffffffffd
jmp 0x418791
push edi
jmp 0x418791
cmp eax, 0xfffffffd
jne 0x418f1f
jmp 0x418f15
mov eax, 0xfffffffd
mov dword [esi + 0xa8], 9
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x80], ecx
push eax
jmp 0x418797
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x80], ecx
push eax
jmp 0x418797
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa8], 9
mov dword [esi + 0x80], ecx
push 0xfffffffffffffffd
jmp 0x418797
cmp eax, 0xfffffffd
jne 0x418f1f
jmp 0x418f15
cmp ebx, 7
jbe 0x418f72
inc dword [esi + 0x18]
sub ebx, 8
dec dword [esi]
mov dword [esi + 0xa8], 7
lea eax, [esp + 0x38]
mov ecx, esi
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00419d00
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x80]
je 0x418fc2
mov eax, dword [esp + 0x1c]
push dword [esp + 0x40]
mov dword [esi + 0x80], eax
jmp 0x418797
push eax
mov ecx, esi
call fcn.0041a060
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xa8], 8
push 1
jmp 0x418791