Function at 0x413790
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 0x414204
sub esp, 0xc0
mov edx, dword [0x14b1144]
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 0x4137eb
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 0x4137f7
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 0x413aa8
cmp esi, 0xc
je 0x413984
lea esi, [esi + edi - 1]
shr esi, 0x16
cmp ebx, esi
je 0x413836
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 0x413930
mov dword [esp + 0xa8], ebp
mov edx, dword [edi]
mov esi, dword [esp + 0xcc]
cmp esi, edx
jbe 0x4138e6
mov dword [esp + 0x64], edx
mov ebx, dword [edi + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x4138aa
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 0x41415b
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 0x4140e3
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 0x413d8f
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.00414210
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jmp 0x413b67
mov eax, dword [esp + 0x9c]
movzx eax, byte [eax]
mov esi, dword [esp + 0xd0]
cmp dword [esi], 4
jne 0x41399f
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 0x4139ec
test ecx, ecx
jne 0x4139d7
movzx ecx, byte [ebp]
and ecx, 0xffffff88
or ecx, eax
or ecx, 0x10
mov byte [ebp], cl
jmp 0x413aa1
movzx eax, byte [ebp]
and eax, 0x11
shl esi, 1
or esi, eax
xchg esi, eax
mov byte [ebp], al
xchg esi, eax
jmp 0x413aa1
xchg esi, eax
mov byte [esp + 0x29], al
xchg esi, eax
cmp ecx, 2
jne 0x413a4a
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 0x413a17
nop
lea eax, [ebp + 1]
jmp 0x413a38
mov dword [esp], ebp
mov dword [esp + 4], 3
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004129e0
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 0x413aa1
cmp ecx, 3
jne 0x413aa1
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 0x413a6f
nop
lea eax, [ebp + 1]
jmp 0x413a8c
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004129e0
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 0x413b04
mov eax, dword [esp + 0xcc]
cmp eax, 4
jne 0x413ae6
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 0x413afd
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 0x413c32
mov eax, dword [0x14b1144]
test byte [eax], al
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x413ba3
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 0x413bb2
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 0x413ceb
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 0x413be0
nop
inc edx
xor ebp, ebp
jmp 0x413c22
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.004129e0
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 0x413ceb
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.00412b30
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.0046d030
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 0x413c39
cmp ebx, 2
jne 0x413d7a
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 0x413d1a
lea ebx, [ebp + 1]
jmp 0x413d4e
cmp edx, eax
je 0x413d23
inc edx
xor ebx, ebx
jmp 0x413d4e
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004129e0
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 0x413d72
cmp eax, edx
jne 0x413d72
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004129e0
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.0046ce60
jmp 0x413c32
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x413dba
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 0x413dc0
cmp esi, edx
mov ebp, dword [esp + 0x34]
jne 0x413dca
mov edx, dword [edi + 4]
shr edx, 2
jmp 0x413df8
test edx, edx
je 0x4140de
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 0x414071
test ecx, ecx
jne 0x413e45
mov esi, ebp
and ebp, 0xf
or ebp, 0xf0
cmp edx, 4
ja 0x413e27
mov ecx, eax
mov esi, 4
mov eax, dword [esp + 0xa8]
jmp 0x413fca
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 0x413eb7
cmp ecx, 2
jne 0x41405b
mov esi, ebp
and ebp, 3
shl ebp, 2
mov edi, ebp
or ebp, 0x40
cmp edx, 1
jbe 0x413e68
or edi, 0xc0
jmp 0x413e6a
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 0x413e96
mov esi, 6
xor ebp, ebp
jmp 0x413fca
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 0x413ed6
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 0x413fbc
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 0x413f2a
cmp ebp, 8
jae 0x413f25
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 0x413fa2
add ebp, 0xfffffff8
jmp 0x413fa2
test ebx, ebx
je 0x413f7e
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 0x413f60
mov ebp, dword [esp + 0x9c]
movzx ebx, byte [ebp]
mov ecx, esi
shl ebx, cl
or eax, ebx
lea ebx, [ebp + 1]
jmp 0x413f6f
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 0x413fa2
cmp ebp, 8
jae 0x413f9f
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 0x413ebc
inc edi
jmp 0x413fc2
mov ecx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x6c]
mov ebp, eax
mov eax, edi
cmp esi, edx
jbe 0x413ff9
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 0x414016
xchg ebp, ebx
mov byte [eax], bl
xchg ebp, ebx
nop
lea ebp, [esi + 4]
inc eax
jmp 0x414051
add edx, 2
cmp esi, edx
jne 0x41403a
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 0x413b67
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
cmp eax, edx
jmp 0x413b67
mov byte [eax], 0
add ebp, 4
nop
inc eax
cmp ebp, edx
jbe 0x414049
mov esi, ebp
xor ebp, ebp
jmp 0x414016
lea eax, [0xd71a1e]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.0043bb80
mov dword [esp], edi
call fcn.00463ae0
mov eax, dword [esp + 4]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
call fcn.0043d780
lea eax, [0xd63d05]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.0043e060
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0043e060
call fcn.0043d9a0
call fcn.0043d7f0
lea eax, [0xd7d906]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call fcn.0043bb80
call fcn.00439f20
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 0x413d8f
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 0x414109
mov ebx, edx
shr edx, 2
lea ebp, [edx + edx]
cmp ebp, 0x19
ja 0x41417a
mov dword [esp + 0x38], edx
mov ebp, dword [esp + 0x54]
jmp 0x4141ac
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x38], edx
xor ebx, ebx
mov dword [esp + 0x34], ebp
xor ebp, ebp
jmp 0x4140e3
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 0x41418f
mov edx, dword [esp + 0x38]
test dl, dl
je 0x4141fe
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 0x41417e
call fcn.00439f20
nop
call fcn.0046b280
jmp fcn.00413790