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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10067e65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x34], edx
xor ebx, ebx
mov dword [esp + 0x18], esi
push edi
cmp dword [esi + 0x10], ebx
jne 0x1004031e
xor al, al
jmp 0x10040dfe
push 1
lea ecx, [esp + 0x80]
call fcn.10026bf9
mov dword [esp + 0x134], ebx
lea edx, [esp + 0x7c]
mov eax, 0xaaaeb9ae
lea ecx, [esp + 0xc4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x14], 0xea4c5706
call fcn.1003f06f
mov dword [esp + 0x18], 0x1650
cmp dword [esp + 0x18], 0x118c
jge 0x100404eb
lea eax, [esp + 0x2c]
push eax
push 0x1000786c
call fcn.1004df4b
pop ecx
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.1002af04
mov dword [esp + 0x60], eax
mov esi, ebx
mov byte [esp + 0x134], 1
mov dword [esp + 0x14], esi
mov edi, ebx
jmp 0x100404b9
dec eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x25]
push eax
push 0x10007c5c
call fcn.1004df4b
mov al, byte [esp + 0x2d]
add esp, 0xc
cmp al, 0x2b
jne 0x10040405
movzx eax, byte [0x11f69604]
inc esi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x18], esi
push eax
push ecx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x70]
call fcn.1002b7fd
mov al, byte [esp + 0x21]
cmp al, 0x2d
jne 0x100404b4
mov edx, dword [esp + 0x60]
mov esi, edx
mov eax, dword [edx + 4]
mov ecx, eax
cmp byte [ecx + 0xd], 0
jne 0x10040444
mov ebx, dword [esp + 0x30]
cmp dword [ecx + 0x10], ebx
jge 0x1004042c
mov ecx, dword [ecx + 8]
jmp 0x1004043c
cmp byte [esi + 0xd], 0
je 0x10040438
cmp ebx, dword [ecx + 0x10]
cmovl esi, ecx
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10040422
xor ebx, ebx
cmp byte [esi + 0xd], 0
jne 0x1004044c
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1004046a
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x10]
jge 0x10040461
mov esi, eax
mov eax, dword [eax]
jmp 0x10040464
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x10040456
mov dword [esp + 0x18], ebx
mov dword [esp + 0x88], edx
cmp edx, esi
je 0x100404af
lea ecx, [esp + 0x88]
inc ebx
call fcn.1002a844
cmp dword [esp + 0x88], esi
jne 0x10040479
push 0
test ebx, ebx
pop ebx
je 0x100404af
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x30]
dec esi
lea ecx, [esp + 0x60]
push eax
mov dword [esp + 0x18], esi
call fcn.10026fb0
jmp 0x100404b4
mov esi, dword [esp + 0x14]
inc edi
cmp esi, edi
cmovg edi, esi
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x100403b9
dec eax
push edi
push 0x1000786c
mov dword [esp + 0x34], eax
call fcn.1004e3a9
pop ecx
pop ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x134], bl
call fcn.1000d14a
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x7c]
call fcn.1003f2c4
mov dword [esp + 0x94], 0xc
or edi, 0xffffffff
jmp 0x1004059b
mov dword [esp + 0xc], 8
mov dword [esp + 0xc], ebx
jmp 0x1004051e
call fcn.1003f79a
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jle 0x10040515
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x94]
cmp ecx, eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
setle dl
mov dword [esp + 0x18], edx
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x7c]
setl dl
xor ecx, ecx
cmp edx, dword [esp + 0x18]
setg cl
mov dword [eax], ecx
imul eax, ecx, 0xfffffff7
cmp eax, 0xa7790412
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, edi
sete cl
imul ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x9c]
mov eax, dword [esp + 0xc]
cmp eax, 0xb91e
setl cl
mov dword [esp + 0xc], ecx
dec dword [esp + 0x94]
cmp dword [esp + 0x94], edi
jg 0x10040507
mov dword [esp + 0x134], edi
cmp dword [esp + 0x7c], 0
je 0x100405d2
push dword [esp + 0x7c]
call fcn.1004e579
pop ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x38]
call fcn.1003fe16
mov dword [esp + 0x10], 0xfaaaeb9a
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x2633
mov dword [esp + 0x18], 7
mov dword [esp + 0xc], ebx
jmp 0x10040610
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xf4], 0xfffffffe
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jl 0x100405fd
mov dword [esp + 0xc], ebx
jmp 0x10040630
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xe8], 0xfff8
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x1004061d
mov dword [esp + 0xc], ebx
jmp 0x10040650
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xbc], 0x8de905f4
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 1
jl 0x1004063d
mov eax, dword [esp + 0x10]
mov ecx, 0x7ea4c570
sub ecx, eax
cmp ecx, dword [esp + 0x10]
jl 0x1004066c
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xfc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
neg ecx
sbb ecx, ecx
neg ecx
add eax, ecx
je 0x100406a0
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xf0]
mov eax, dword [esp + 0xf4]
cmp eax, ecx
setg dl
mov dword [esp + 0xbc], edx
xor edx, edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp ecx, eax
setge dl
xor ecx, ecx
imul edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, edx
setg cl
sub ecx, dword [esp + 0x10]
add ecx, dword [esp + 0xf0]
neg ecx
sbb ecx, ecx
neg ecx
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x18], ecx
jb 0x10040706
mov ecx, dword [esi]
jmp 0x10040708
mov ecx, esi
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x34], ecx
jb 0x10040716
mov edx, dword [esi]
jmp 0x10040718
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
cmp ecx, eax
je 0x10040dfc
mov al, byte [ecx]
cmp al, 0x30
jl 0x10040a92
cmp al, 0x39
jg 0x10040a92
push dword [esp + 0xc4]
movdqa xmm0, xmmword [0x10007f30]
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x118]
mov dword [esp + 0x5c], ebx
push eax
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], ebx
movdqu xmmword [esp + 0x120], xmm0
mov dword [esp + 0x6c], ebx
call fcn.1002c30d
mov dword [esp + 0x28], 1
mov dword [esp + 0x28], 3
cmp dword [esp + 0x28], ebx
jl 0x10040815
mov dword [esp + 0x24], 0xe2c0d37a
mov dword [esp + 0xcc], 0x3895196e
mov dword [esp + 0xb8], 1
mov dword [esp + 0x24], 3
cmp dword [esp + 0x24], ebx
jl 0x1004080b
mov dword [esp + 0xc8], 7
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xd8]
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0xd8]
call fcn.1003fe1c
add esp, 0x10
dec dword [esp + 0x24]
jns 0x100407bb
dec dword [esp + 0x28]
jns 0x1004078f
lea ecx, [esp + 0x22]
mov byte [esp + 0x22], bl
call fcn.1003fe76
cmp dword [esp + 0x54], 0
je 0x1004083f
push dword [esp + 0x54]
call fcn.1004e579
pop ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
push ebx
lea eax, [esp + 0x38]
push eax
push 0x13fe
push 0x308b
lea eax, [esp + 0x48]
push 0x54ad
push eax
call fcn.100423b1
add esp, 0x18
mov dword [esp + 0xc], 0xf5540d7f
lea ecx, [esp + 0x68]
push 1
call fcn.10026bf9
mov dword [esp + 0x134], 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
jmp 0x1004089c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4], 0xdce9
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x10040889
mov dword [esp + 0xc], ebx
jmp 0x10040a59
mov dword [esp + 0x10], 0x4b25b3b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ebx
jmp 0x10040a4b
mov dword [esp + 0x18], 0xfffffffb
mov dword [esp + 0x14], ebx
jmp 0x100408e2
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x104], 0xf0f5ebec
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x100408cf
mov dword [esp + 0x1c], 0x20c8
cmp dword [esp + 0x1c], 0x11e0
jge 0x100409cf
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
lea edx, [esp + 0xa0]
mov byte [esp + 0x134], 3
mov ecx, 0x10658730
call fcn.1002c053
cmp dword [esp + 0xb0], 0
mov ecx, ebx
jbe 0x100409aa
cmp dword [esp + 0xb4], 0x10
lea eax, [esp + 0xa0]
cmovae eax, dword [esp + 0xa0]
cmp byte [eax + ecx], 0x48
je 0x10040a20
cmp dword [esp + 0xb4], 0x10
lea eax, [esp + 0xa0]
cmovae eax, dword [esp + 0xa0]
cmp byte [eax + ecx], 0x39
je 0x10040a20
cmp dword [esp + 0xb4], 0x10
lea eax, [esp + 0xa0]
cmovae eax, dword [esp + 0xa0]
cmp byte [eax + ecx], 0x51
je 0x10040a20
inc ecx
cmp ecx, dword [esp + 0xb0]
jb 0x1004093d
mov edx, 0x10007880
mov ecx, 0x10658678
call fcn.1002b007
push eax
call fcn.1002afd5
pop ecx
push ebx
push 1
lea ecx, [esp + 0xa8]
call fcn.10027530
mov eax, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp eax, ecx
mov eax, dword [esp + 0x18]
setge dl
sub eax, edx
neg eax
push 0
sbb eax, eax
inc eax
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
cmp eax, dword [ecx + edx*4]
mov eax, dword [esp + 0x6c]
pop ecx
setne cl
sub ecx, dword [eax]
jne 0x10040a27
cmp dword [esp + 0x10c], ebx
jne 0x10040a27
xor edx, edx
inc edx
jmp 0x10040a29
mov edx, 0x1000787c
jmp 0x100409af
mov edx, ebx
mov dword [esp + 0x10c], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov eax, dword [eax + ecx*4]
sub eax, edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], ebx
jne 0x10040a55
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ebx
jle 0x100408c1
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 0xfffffff0
jne 0x100408ac
mov dword [esp + 0x134], edi
cmp dword [esp + 0x68], 0
je 0x10040a88
push dword [esp + 0x68]
call fcn.1004e579
pop ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 0x34]
inc ecx
jmp 0x10040708
mov dword [esp + 0x10], 0xf7e2799a
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], 0xffffffe9
jge 0x10040bb8
push 4
lea ecx, [esp + 0x4c]
call fcn.10026bf9
mov dword [esp + 0x14], 0x2edc7555
lea edx, [esp + 0x48]
lea ecx, [esp + 0xe4]
call fcn.1003fe89
mov dword [esp + 0x14], 3
cmp dword [esp + 0x14], ebx
jl 0x10040b85
mov byte [esp + 0x23], bl
cmp byte [esp + 0x23], 0
je 0x10040b7b
mov dword [esp + 0x18], 0x19e6
cmp dword [esp + 0x18], 0x10e1
jge 0x10040b76
lea eax, [esp + 0x74]
push eax
push 0x10007860
call fcn.1004df4b
xor edi, edi
inc edi
pop ecx
pop ecx
cmp dword [esp + 0x74], edi
jl 0x10040b76
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x7c]
push eax
push 0x10007908
call fcn.1004df4b
mov ecx, dword [esp + 0x84]
add esp, 0xc
call fcn.100402c8
mov ecx, dword [esp + 0x8c]
mov esi, eax
mov dword [esp + 0x78], esi
call fcn.100402c8
mov dword [esp + 0x8c], eax
add eax, esi
push eax
push 0x10007c64
call fcn.1004e3a9
inc edi
pop ecx
pop ecx
cmp edi, dword [esp + 0x74]
jle 0x10040b21
call fcn.1003fea8
dec dword [esp + 0x14]
jns 0x10040ae6
cmp dword [esp + 0x10], ebx
cmp dword [esp + 0x48], 0
je 0x10040ba6
push dword [esp + 0x48]
call fcn.1004e579
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
pop ecx
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe9
jl 0x10040ab1
or edi, 0xffffffff
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, edi
mov eax, dword [esp + 0x38]
setge cl
mov dword [esp + 0x10], ecx
mov dword [eax], ebx
mov dword [esp + 0x18], 0x1adb
cmp dword [esp + 0x18], 0x124f
jge 0x10040d31
push 0x11ccc920
push 0x11cc8910
push 0x10007b68
call fcn.1004df4b
mov eax, dword [0x11cc8914]
xor ecx, ecx
inc ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp eax, ebx
jl 0x10040cb9
mov edi, dword [0x11cc8910]
jg 0x10040c1e
cmp edi, ecx
jb 0x10040cb9
mov esi, ebx
mov ebx, ecx
push esi
push ebx
push eax
push edi
call fcn.10066a30
or eax, edx
jne 0x10040c87
lea eax, [esp + 0xd0]
mov dword [esp + 0xd0], ebx
push eax
mov dword [esp + 0xd8], esi
call fcn.10026d82
mov edi, dword [0x11cc8910]
push esi
push ebx
push dword [0x11cc8914]
push edi
call fcn.10066980
cmp eax, ebx
jne 0x10040c66
cmp edx, esi
je 0x10040c87
mov dword [esp + 0xd8], eax
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0xe0], edx
call fcn.10026d82
mov edi, dword [0x11cc8910]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cdq
mov esi, edx
mov ebx, eax
push esi
push ebx
push esi
push ebx
call fcn.100521e0
mov ecx, eax
mov eax, dword [0x11cc8914]
cmp edx, eax
jl 0x10040c22
jg 0x10040cb7
cmp ecx, edi
jbe 0x10040c22
xor ebx, ebx
mov edx, dword [0x11f695fc]
mov eax, edx
mov ecx, dword [0x11f695f8]
sub eax, ecx
mov byte [esp + 0xc0], bl
push dword [esp + 0xc0]
sar eax, 3
push eax
call fcn.10044ee9
mov edx, dword [0x11f695f8]
pop ecx
pop ecx
mov ecx, dword [0x11f695fc]
sub ecx, edx
sar ecx, 3
cmp ebx, dword [0x11ccc924]
jg 0x10040d17
jl 0x10040d06
mov eax, dword [0x11ccc920]
cmp ecx, eax
jae 0x10040d1c
push 0x100078ac
call fcn.1004e792
mov edx, dword [0x11f695f8]
pop ecx
mov eax, dword [0x11ccc920]
push dword [edx + eax*8 - 4]
push dword [edx + eax*8 - 8]
push 0x10007980
call fcn.1004e3a9
add esp, 0xc
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x2499
cmp dword [esp + 0x18], 0xeb9
jge 0x10040dd8
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], ebx
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x48], ebx
push eax
push 0x100078b8
call fcn.1004df4b
mov eax, dword [esp + 0x4c]
add esp, 0x10
inc eax
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x44]
sar esi, 1
mov dword [esp + 0x3c], esi
lea eax, [eax + 1]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x40]
sar edi, 1
mov dword [esp + 0x44], edi
lea eax, [eax + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], eax
cmp eax, edi
jl 0x10040db9
cmp eax, esi
jl 0x10040db9
imul eax, eax, 3
add eax, 0x1d
jmp 0x10040dcb
cmp edi, esi
jl 0x10040dc5
imul eax, edi, 3
add eax, 0x1c
jmp 0x10040dcb
lea eax, [esi + 9]
imul eax, eax, 3
push eax
push 0x10007868
call fcn.1004e3a9
pop ecx
pop ecx
mov dword [esp + 0x14], 0xffffffed
jmp 0x10040df0
call fcn.100400a5
call fcn.100400c4
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0xf
jne 0x10040de2
jmp 0x10040317
mov al, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret