Function at 0x413260
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 0x413cd4
sub esp, 0xc0
mov edx, dword [0x10862e4]
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 0x4132bb
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 0x4132c7
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 0x413578
cmp esi, 0xc
je 0x413454
lea esi, [esi + edi - 1]
shr esi, 0x16
cmp ebx, esi
je 0x413306
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 0x413400
mov dword [esp + 0xa8], ebp
mov edx, dword [edi]
mov esi, dword [esp + 0xcc]
cmp esi, edx
jbe 0x4133b6
mov dword [esp + 0x64], edx
mov ebx, dword [edi + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x41337a
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 0x413c2b
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 0x413bb3
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 0x41385f
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.00413ce0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jmp 0x413637
mov eax, dword [esp + 0x9c]
movzx eax, byte [eax]
mov esi, dword [esp + 0xd0]
cmp dword [esi], 4
jne 0x41346f
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 0x4134bc
test ecx, ecx
jne 0x4134a7
movzx ecx, byte [ebp]
and ecx, 0xffffff88
or ecx, eax
or ecx, 0x10
mov byte [ebp], cl
jmp 0x413571
movzx eax, byte [ebp]
and eax, 0x11
shl esi, 1
or esi, eax
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
jmp 0x413571
xchg esi, eax
mov byte [esp + 0x29], al
xchg esi, eax
cmp ecx, 2
jne 0x41351a
movzx eax, byte [ebp]
and eax, 0x33
mov ecx, esi
and esi, 0x33
shl esi, 2
or esi, eax
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
cmp ebp, edx
je 0x4134e7
nop
lea eax, [ebp + 1]
jmp 0x413508
mov dword [esp], ebp
mov dword [esp + 4], 3
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004124b0
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x29]
movzx edx, byte [eax]
and edx, 0xffffffee
shr cl, 2
and ecx, 0x11
or ecx, edx
mov byte [eax], cl
jmp 0x413571
cmp ecx, 3
jne 0x413571
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 0x41353f
nop
lea eax, [ebp + 1]
jmp 0x41355c
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004124b0
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 0x4135d4
mov eax, dword [esp + 0xcc]
cmp eax, 4
jne 0x4135b6
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 0x4135cd
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 esi, edx
lea eax, [esi - 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 0x413702
mov eax, dword [0x10862e4]
test byte [eax], al
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x413673
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 0x413682
mov esi, dword [esp + 0xc4]
xor edx, edx
xor eax, eax
xor ecx, ecx
xor ebp, ebp
mov ebx, dword [esp + 0xc8]
shr ebx, 2
mov edi, esi
cmp ebp, 2
jne 0x4137bb
movzx ebp, byte [edx]
and ebp, 0x33
movzx edi, byte [esi]
or edi, ebp
xchg edi, eax
mov byte [edx], al
xchg edi, eax
cmp eax, edx
je 0x4136b0
nop
inc edx
xor ebp, ebp
jmp 0x4136f2
mov dword [esp + 0x50], ebx
mov dword [esp + 0xbc], esi
mov dword [esp], edx
mov dword [esp + 4], 3
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004124b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xbc]
mov ebp, eax
mov eax, ebx
mov ebx, dword [esp + 0x50]
add ebx, 0xfffffffe
inc esi
mov edi, dword [esp + 0xc4]
jmp 0x4137bb
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.00412600
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.0046a440
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 0x413709
cmp ebx, 2
jne 0x41384a
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 0x4137ea
lea ebx, [ebp + 1]
jmp 0x41381e
cmp edx, eax
je 0x4137f3
inc edx
xor ebx, ebx
jmp 0x41381e
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004124b0
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 0x413842
cmp eax, edx
jne 0x413842
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004124b0
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.0046a270
jmp 0x413702
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x41388a
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 0x413890
cmp esi, edx
mov ebp, dword [esp + 0x34]
jne 0x41389a
mov edx, dword [edi + 4]
shr edx, 2
jmp 0x4138c8
test edx, edx
je 0x413bae
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 0x413b41
test ecx, ecx
jne 0x413915
mov esi, ebp
and ebp, 0xf
or ebp, 0xf0
cmp edx, 4
ja 0x4138f7
mov ecx, eax
mov esi, 4
mov eax, dword [esp + 0xa8]
jmp 0x413a9a
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 0x413987
cmp ecx, 2
jne 0x413b2b
mov esi, ebp
and ebp, 3
shl ebp, 2
mov edi, ebp
or ebp, 0x40
cmp edx, 1
jbe 0x413938
or edi, 0xc0
jmp 0x41393a
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 0x413966
mov esi, 6
xor ebp, ebp
jmp 0x413a9a
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 0x4139a6
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 0x413a8c
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 0x4139fa
cmp ebp, 8
jae 0x4139f5
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 0x413a72
add ebp, 0xfffffff8
jmp 0x413a72
test ebx, ebx
je 0x413a4e
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 0x413a30
mov ebp, dword [esp + 0x9c]
movzx ebx, byte [ebp]
mov ecx, esi
shl ebx, cl
or eax, ebx
lea ebx, [ebp + 1]
jmp 0x413a3f
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 0x413a72
cmp ebp, 8
jae 0x413a6f
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 0x41398c
inc edi
jmp 0x413a92
mov ecx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x6c]
mov ebp, eax
mov eax, edi
cmp esi, edx
jbe 0x413ac9
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 0x413ae6
xchg ebp, ebx
mov byte [eax], bl
xchg ebp, ebx
nop
lea ebp, [esi + 4]
inc eax
jmp 0x413b21
add edx, 2
cmp esi, edx
jne 0x413b0a
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 0x413637
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
cmp eax, edx
jmp 0x413637
mov byte [eax], 0
add ebp, 4
nop
inc eax
cmp ebp, edx
jbe 0x413b19
mov esi, ebp
xor ebp, ebp
jmp 0x413ae6
lea eax, [0xb5330e]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.0043b580
mov dword [esp], edi
call fcn.00460da0
mov eax, dword [esp + 4]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
call fcn.0043d180
lea eax, [0xb49439]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.0043da60
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0043da60
call fcn.0043d3a0
call fcn.0043d1f0
lea eax, [0xb5b3ee]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call fcn.0043b580
call fcn.00439ba0
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 0x41385f
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 esi, eax
mov eax, dword [esp + 0x54]
or eax, esi
nop
lea esi, [edi + 1]
mov ecx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0xa8]
mov edi, dword [esp + 0xd0]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0xcc]
mov ebp, dword [esp + 0x40]
cmp ebp, ebx
jb 0x413bd9
mov ebx, edx
shr edx, 2
lea ebp, [edx + edx]
cmp ebp, 0x19
ja 0x413c4a
mov dword [esp + 0x38], edx
mov ebp, dword [esp + 0x54]
jmp 0x413c7c
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x38], edx
xor ebx, ebx
mov dword [esp + 0x34], ebp
xor ebp, ebp
jmp 0x413bb3
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 0x413c5f
mov edx, dword [esp + 0x38]
test dl, dl
je 0x413cce
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 0x413c4e
call fcn.00439ba0
nop
call fcn.00468690
jmp fcn.00413260