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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x412de1
sub esp, 0xc0
mov edx, dword [0x90b37c]
test byte [edx], al
nop
mov ebx, dword [esp + 0xc4]
mov ebp, ebx
shr ebx, 0x16
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x4123bb
mov esi, ebp
shr ebp, 4
and ebp, 0x3ffff
add ebp, edx
mov edi, esi
shr esi, 2
and esi, 3
add edx, 0x3ffff
mov eax, ebx
jmp 0x4123c7
mov eax, ebx
mov edi, ebp
xor ebp, ebp
xor esi, esi
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x44], esi
mov ecx, esi
mov esi, dword [esp + 0xd0]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0xc8]
cmp esi, 8
je 0x41267f
cmp esi, 0xc
je 0x412554
lea esi, [esi + edi - 1]
shr esi, 0x16
cmp ebx, esi
je 0x412406
mov ebp, edi
xor edx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x48], ebx
mov edi, dword [esp + 0xd0]
movzx esi, byte [edi + 0xf]
xchg esi, eax
test al, 0x40
xchg esi, eax
jne 0x412500
mov dword [esp + 0xa8], ebp
mov edx, dword [edi]
mov esi, dword [esp + 0xcc]
cmp esi, edx
jbe 0x4124b6
mov dword [esp + 0x64], edx
mov ebx, dword [edi + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x41247a
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x70], ecx
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
jmp 0x412d38
add ebx, 7
shr ebx, 3
lea ebp, [ebx - 1]
nop
shr edx, 2
shl ebp, 3
sub edx, ebp
mov ebp, dword [esp + 0x9c]
lea ebx, [ebp + ebx - 1]
mov ebp, dword [esp + 0x9c]
xor ebp, ebp
mov dword [esp + 0x38], ebp
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x9c]
jmp 0x412cc0
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x88], ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov dword [esp + 0xac], ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
jmp 0x41296c
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x9c]
add ecx, 4
mov dword [esp + 0x20], ecx
call fcn.00412df0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jmp 0x41273e
mov eax, dword [esp + 0x9c]
movzx eax, byte [eax]
mov esi, dword [esp + 0xd0]
cmp dword [esi], 4
jne 0x41256f
mov eax, 7
and eax, 7
mov esi, eax
shl eax, 4
or eax, esi
mov esi, eax
or eax, 0x10
and eax, 0x40
shr al, 1
or esi, eax
mov eax, esi
or esi, 0x10
cmp ecx, 1
ja 0x4125bc
test ecx, ecx
jne 0x4125a7
movzx ecx, byte [ebp]
and ecx, 0xffffff88
or ecx, eax
or ecx, 0x10
mov byte [ebp], cl
jmp 0x412678
movzx eax, byte [ebp]
and eax, 0x11
shl esi, 1
or esi, eax
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
jmp 0x412678
xchg esi, eax
mov byte [esp + 0x29], al
xchg esi, eax
cmp ecx, 2
jne 0x412621
movzx eax, byte [ebp]
and eax, 0x33
mov edi, esi
and esi, 0x33
shl esi, 2
or esi, eax
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
lea eax, [ecx + 1]
cmp eax, 3
jb 0x412609
cmp ebp, edx
je 0x4125ec
inc ebp
jmp 0x412609
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004115c0
mov ebp, dword [esp + 0x10]
movzx edi, byte [esp + 0x29]
movzx eax, byte [ebp]
and eax, 0xffffffee
xchg edi, eax
shr al, 2
xchg edi, eax
and edi, 0x11
or edi, eax
xchg edi, eax
mov byte [ebp], al
xchg edi, eax
jmp 0x412678
cmp ecx, 3
jne 0x412678
movzx eax, byte [ebp]
and eax, 0x77
mov edi, esi
and esi, 0x11
shl esi, 3
or esi, eax
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
cmp ebp, edx
je 0x412646
nop
lea eax, [ebp + 1]
jmp 0x412663
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004115c0
mov eax, dword [esp + 0x10]
movzx edi, byte [esp + 0x29]
movzx ecx, byte [eax]
and ecx, 0xffffffcc
xchg edi, eax
shr al, 1
xchg edi, eax
and edi, 0x33
or edi, ecx
xchg edi, ebx
mov byte [eax], bl
xchg edi, ebx
add esp, 0xc0
ret
mov eax, dword [esp + 0xd0]
cmp dword [eax], 4
jne 0x4126db
mov eax, dword [esp + 0xcc]
cmp eax, 4
jne 0x4126bd
cmp ecx, 0x20
sbb eax, eax
movzx edx, byte [ebp]
mov ebx, 0x33
shl ebx, cl
and ebx, eax
not ebx
and ebx, edx
mov edx, 0x11
shl edx, cl
and edx, eax
or edx, ebx
mov byte [ebp], dl
jmp 0x4126d4
cmp ecx, 0x20
sbb eax, eax
movzx edx, byte [ebp]
mov ebx, 0x33
shl ebx, cl
and eax, ebx
or edx, eax
mov byte [ebp], dl
add esp, 0xc0
ret
mov eax, dword [eax + 4]
shr eax, 2
cmp eax, 0x20
sbb edx, edx
cmp ecx, 0x20
sbb ebx, ebx
sbb esi, esi
mov dword [esp + 0x60], esi
mov edi, dword [esp + 0x9c]
movzx edi, byte [edi]
and edi, 3
mov ecx, eax
mov esi, 0x10
shl esi, cl
and edx, esi
lea eax, [edx - 1]
and eax, 0xf0
or edi, eax
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x44]
mov edx, 0x33
shl edx, cl
and ebx, edx
not ebx
and ebx, eax
shl edi, cl
mov eax, dword [esp + 0x60]
and edi, eax
or edi, ebx
xchg edi, eax
mov byte [ebp], al
xchg edi, eax
add esp, 0xc0
ret
je 0x41280f
mov eax, dword [0x90b37c]
test byte [eax], al
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x41277a
mov edx, dword [esp + 0xc4]
mov ebp, edx
shr edx, 4
and edx, 0x3ffff
add edx, eax
mov esi, ebp
shr ebp, 2
and ebp, 3
add eax, 0x3ffff
jmp 0x412789
mov esi, dword [esp + 0xc4]
xor edx, edx
xor ebp, ebp
xor eax, eax
xor ecx, ecx
mov ebx, dword [esp + 0xc8]
shr ebx, 2
mov edi, esi
cmp ebp, 2
jne 0x4128c8
mov dword [esp + 0xbc], esi
movzx edi, byte [edx]
and edi, 0x33
movzx esi, byte [esi]
or esi, edi
xchg esi, eax
mov byte [edx], al
xchg esi, eax
lea esi, [ebp + 1]
cmp esi, 3
jae 0x4127c1
add ebp, 2
jmp 0x4127f6
cmp eax, edx
je 0x4127ca
inc edx
xor ebp, ebp
jmp 0x4127f6
mov dword [esp + 0x50], ebx
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004115c0
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x50]
add ebx, 0xfffffffe
mov edi, dword [esp + 0xbc]
lea esi, [edi + 1]
mov edi, dword [esp + 0xc4]
jmp 0x4128c8
add esp, 0xc0
ret
mov dword [esp + 0xa4], edx
mov dword [esp + 0x50], ebx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
shr ebx, 2
shl ebx, 2
mov dword [esp + 0x10], ebx
call fcn.00411710
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xb8], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xb4], ebp
mov esi, dword [esp + 0xa4]
mov dword [esp], esi
mov esi, dword [esp + 0x98]
mov dword [esp + 4], esi
shr eax, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.00462ea0
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
sub ebx, eax
nop
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x98]
lea esi, [ecx + eax]
mov edi, dword [esp + 0xc4]
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x98], esi
cmp ebx, 4
jae 0x412816
cmp ebx, 2
jne 0x412957
movzx ebx, byte [edx]
and ebx, 0xffffffcc
movzx edi, byte [esi]
or edi, ebx
xchg edi, eax
mov byte [edx], al
xchg edi, eax
nop
cmp ebp, 3
jae 0x4128f7
lea ebx, [ebp + 1]
jmp 0x41292b
cmp edx, eax
je 0x412900
inc edx
xor ebx, ebx
jmp 0x41292b
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004115c0
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x98]
cmp ebx, 3
jb 0x41294f
cmp eax, edx
jne 0x41294f
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004115c0
mov esi, dword [esp + 0x98]
inc esi
mov edi, dword [esp + 0xc4]
mov eax, edi
mov dword [esp], edi
sub esi, eax
mov dword [esp + 4], esi
call fcn.00462cd0
jmp 0x41280f
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x412997
movzx ebp, byte [ebx]
nop
inc ebx
cmp esi, edx
mov dword [esp + 0x80], eax
mov eax, 8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x80]
jmp 0x41299d
cmp esi, edx
mov ebp, dword [esp + 0x34]
jne 0x4129a7
mov edx, dword [edi + 4]
shr edx, 2
jmp 0x4129d5
test edx, edx
je 0x412cbb
mov dword [esp + 0xb0], ebx
mov eax, esi
mov ebx, edx
xor edx, edx
div ebx
lea edx, [eax - 1]
imul edx, ebx
add edx, dword [edi + 4]
shr edx, 2
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0xb0]
test edx, edx
je 0x412c4e
test ecx, ecx
jne 0x412a22
mov esi, ebp
and ebp, 0xf
or ebp, 0xf0
cmp edx, 4
ja 0x412a04
mov ecx, eax
mov esi, 4
mov eax, dword [esp + 0xa8]
jmp 0x412ba7
mov edi, dword [esp + 0xa8]
xchg ebp, eax
mov byte [edi], al
xchg ebp, eax
nop
shr esi, 4
mov ebp, dword [esp + 0x38]
add ebp, 0xfffffffc
inc edi
mov ecx, 4
jmp 0x412a94
cmp ecx, 2
jne 0x412c38
mov esi, ebp
and ebp, 3
shl ebp, 2
mov edi, ebp
or ebp, 0x40
cmp edx, 1
jbe 0x412a45
or edi, 0xc0
jmp 0x412a47
mov edi, ebp
mov ebp, dword [esp + 0xa8]
mov ecx, eax
movzx eax, byte [ebp]
and eax, 0x33
or edi, eax
xchg edi, eax
mov byte [ebp], al
xchg edi, eax
nop
lea eax, [ebp + 1]
cmp edx, 2
ja 0x412a73
mov esi, 6
xor ebp, ebp
jmp 0x412ba7
shr esi, 2
mov ebp, edx
mov edx, dword [esp + 0x38]
add edx, 0xfffffffe
mov ecx, 2
mov edi, eax
mov eax, dword [esp + 0x6c]
mov eax, edx
mov edx, ebp
mov ebp, eax
mov eax, dword [esp + 0x6c]
add ebp, 0xfffffffc
jmp 0x412ab3
mov byte [edi + 1], al
nop
mov eax, dword [esp + 0x54]
shr eax, 4
add edi, 2
mov ecx, dword [esp + 0x34]
mov ecx, esi
mov esi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x54], esi
and esi, 0xf
or esi, 0xf0
lea eax, [ecx + 4]
cmp edx, eax
jbe 0x412b99
mov dword [esp + 0x30], ecx
xchg esi, eax
mov byte [edi], al
xchg esi, eax
nop
mov eax, dword [esp + 0x54]
shr eax, 4
mov esi, dword [esp + 0xac]
cmp ebx, esi
je 0x412b07
cmp ebp, 8
jae 0x412b02
movzx esi, byte [ebx]
mov ecx, ebp
shl esi, cl
or eax, esi
inc ebx
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0xac]
jmp 0x412b7f
add ebp, 0xfffffff8
jmp 0x412b7f
test ebx, ebx
je 0x412b5b
cmp ebp, 0x20
sbb esi, esi
movzx ebx, byte [ebx]
mov ecx, ebp
shl ebx, cl
and esi, ebx
or eax, esi
mov ebx, dword [esp + 0x4c]
lea esi, [ecx + ebx]
cmp esi, 8
jae 0x412b3d
mov ebp, dword [esp + 0x9c]
movzx ebx, byte [ebp]
mov ecx, esi
shl ebx, cl
or eax, ebx
lea ebx, [ebp + 1]
jmp 0x412b4c
lea esi, [ecx + ebx - 8]
mov ebp, dword [esp + 0x9c]
mov ebx, ebp
mov ecx, esi
mov esi, dword [esp + 0xac]
mov ebp, ecx
mov ecx, dword [esp + 0x30]
jmp 0x412b7f
cmp ebp, 8
jae 0x412b7c
mov ecx, ebp
mov esi, dword [esp + 0x34]
shl esi, cl
or eax, esi
mov esi, dword [esp + 0x4c]
lea ebp, [ecx + esi]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0xac]
add ebp, 0xfffffff8
mov dword [esp + 0x54], eax
and eax, 0xf
or eax, 0xf0
lea esi, [ecx + 8]
cmp edx, esi
ja 0x412a99
inc edi
jmp 0x412b9f
mov ecx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x6c]
mov ebp, eax
mov eax, edi
cmp esi, edx
jbe 0x412bd6
mov ebx, esi
sub esi, edx
lea edx, [esi - 4]
neg edx
cmp edx, 0x20
sbb esi, esi
mov ecx, edx
mov edi, 1
shl edi, cl
and edi, esi
lea edx, [edi - 1]
mov esi, edx
shl edx, 4
or edx, esi
and ebp, edx
mov ecx, dword [esp + 0x6c]
mov esi, ebx
mov edx, dword [esp + 0xc8]
mov ebx, edx
shr edx, 2
cmp esi, edx
ja 0x412bf3
xchg ebp, ebx
mov byte [eax], bl
xchg ebp, ebx
nop
lea ebp, [esi + 4]
inc eax
jmp 0x412c2e
add edx, 2
cmp esi, edx
jne 0x412c17
movzx edx, byte [eax]
and edx, 0xffffffcc
or ebp, edx
xchg ebp, ebx
mov byte [eax], bl
xchg ebp, ebx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
cmp eax, edx
jmp 0x41273e
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
cmp eax, edx
jmp 0x41273e
mov byte [eax], 0
add ebp, 4
nop
inc eax
cmp ebp, edx
jbe 0x412c26
mov esi, ebp
xor ebp, ebp
jmp 0x412bf3
lea eax, [0x70130f]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00435820
mov dword [esp], edi
call fcn.0045abc0
mov eax, dword [esp + 4]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
call fcn.00437330
lea eax, [0x6fbf4f]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00437f60
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00437f60
call fcn.00437550
call fcn.004373a0
lea eax, [0x705d0c]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call fcn.00435820
call fcn.00433f10
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xac], ebx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0xa8]
jmp 0x41296c
cmp ebp, 0x20
sbb eax, eax
lea ecx, [ebp + 8]
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 0xa0]
movzx esi, byte [edi]
mov ecx, ebp
shl esi, cl
and eax, esi
mov ecx, dword [esp + 0x54]
or ecx, eax
nop
lea esi, [edi + 1]
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0xa8]
mov edi, dword [esp + 0xd0]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0xcc]
mov ebp, dword [esp + 0x40]
cmp ebp, ebx
jb 0x412ce6
mov ebx, edx
shr edx, 2
lea ebp, [edx + edx]
cmp ebp, 0x19
ja 0x412d57
mov dword [esp + 0x38], edx
mov ebp, dword [esp + 0x54]
jmp 0x412d89
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x38], edx
xor ebx, ebx
mov dword [esp + 0x34], ebp
xor ebp, ebp
jmp 0x412cc0
mov dword [esp + 0x34], ebp
sbb eax, eax
mov ecx, edx
shl ebp, cl
and ebp, eax
mov eax, dword [esp + 0x34]
or ebp, eax
lea edx, [ecx + ecx]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
cmp edx, 0x20
jbe 0x412d6c
mov edx, dword [esp + 0x38]
test dl, dl
je 0x412ddb
movzx edx, dl
mov word [esp + 0x2a], dx
mov edx, 0x19
movzx edx, dl
mov eax, edx
movzx ecx, word [esp + 0x2a]
xor edx, edx
div cx
movzx ecx, al
mov edx, dword [esp + 0x38]
imul ecx, edx
cmp ecx, 0x20
sbb edx, edx
mov eax, edx
mov edx, 1
shl edx, cl
and edx, eax
dec edx
and ebp, edx
mov eax, dword [esp + 0x6c]
mov edx, ecx
mov ecx, dword [esp + 0x44]
jmp 0x412d5b
call fcn.00433f10
nop
call fcn.00461140
jmp fcn.00412360