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

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x90], edx
push edi
mov dword [esp + 0x54], esi
mov eax, dword [esi]
lea edi, [esi + 0x2678]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0xac], eax
mov dword [esp + 0x5c], edi
mov eax, dword [eax + 0xc]
lea ebx, [eax*8 + 0x1015a5e0]
mov eax, 0x24924925
mul ecx
mov eax, dword [ebx]
sub ecx, edx
mov dword [esp + 0x14], ebx
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0xa4], ecx
cmp eax, 0x159b
je 0x1003264f
nop
lea ecx, [eax + 0x10158d20]
mov dword [esp + 0x40], 0
mov al, byte [ecx]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x60], edi
test al, al
je 0x10032632
nop dword [eax + eax]
mov byte [esp + 0x13], 0
cmp al, 0x20
jne 0x10031e26
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x10031e20
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10036020
cmp dword [esp + 0x24], 0
mov ecx, eax
mov dword [esp + 0xa8], ecx
je 0x1003248d
test byte [ebx + 4], 1
mov eax, 0
mov edi, dword [esp + 0x24]
setne al
xor esi, esi
add eax, 0x7fffffff
mov dword [esp + 0x58], esi
test edi, edi
je 0x100321ab
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x10032197
mov edx, ecx
mov ecx, dword [esp + 0x94]
push 1
call fcn.10037d30
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x78], ecx
movups xmmword [esp + 0x68], xmm0
test eax, eax
jne 0x1003218f
mov edx, dword [esp + 0x68]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x1003218f
movsx edi, dx
xor ecx, ecx
mov dword [esp + 0x48], edi
xor eax, eax
mov edx, dword [esp + 0x48]
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edi
test edx, edx
jle 0x10032433
mov esi, dword [esp + 0x74]
movsx edi, word [esi + edi*2]
mov dword [esp + 0x2c], ebx
cmp edi, eax
jle 0x10031f9d
mov edx, dword [esp + 0x14]
mov esi, eax
test byte [edx + 4], 3
mov edx, dword [esp + 0x6c]
lea edx, [edx + eax*8]
jne 0x10031f55
add edx, 4
test ebx, ebx
js 0x10031f3a
mov eax, dword [edx]
cmp eax, ecx
jl 0x10031f3a
cmp ebp, eax
jg 0x10031f4b
mov ebp, eax
jmp 0x10031f4b
mov eax, dword [esp + 0x60]
mov ebx, esi
mov ecx, dword [edx]
cmp eax, ecx
cmovge eax, ecx
mov dword [esp + 0x60], eax
inc esi
add edx, 8
cmp esi, edi
jle 0x10031f28
jmp 0x10031f7f
add edx, 4
test ebx, ebx
js 0x10031f6e
mov eax, dword [edx]
cmp eax, ecx
jg 0x10031f6e
cmp dword [esp + 0x60], eax
jl 0x10031f77
mov dword [esp + 0x60], eax
jmp 0x10031f77
mov ecx, dword [edx]
mov ebx, esi
cmp ebp, ecx
cmovle ebp, ecx
inc esi
add edx, 8
cmp esi, edi
jle 0x10031f58
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x20], ebp
cmp ebx, dword [esp + 0x2c]
je 0x10031f9d
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
lea eax, [edi + 1]
mov edi, dword [esp + 0x30]
inc edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edi
cmp edi, edx
jl 0x10031f02
test ebx, ebx
js 0x1003242f
mov eax, dword [esp + 0x6c]
or esi, 0xffffffff
mov ebp, dword [esp + 0x70]
mov edx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], ebx
mov al, byte [eax + ebx]
and al, 3
cmp al, 1
cmove esi, ebx
mov edi, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], edi
cmp edx, dword [esp + 0x34]
jle 0x10031ffe
dec edx
jmp 0x10032002
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + edx*8 + 4]
mov eax, esi
sub eax, ecx
jns 0x10032014
mov eax, ecx
sub eax, esi
cmp eax, 5
jle 0x10032047
mov esi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esi + edx*8]
mov esi, edi
sub esi, dword [ebp + ebx*8]
mov ebp, dword [esp + 0x70]
jns 0x10032039
mov esi, dword [esp + 0x6c]
mov esi, dword [esi + ebx*8]
sub esi, edi
lea eax, [eax + eax*4]
shl eax, 2
cmp esi, eax
jle 0x10032065
mov edi, dword [esp + 0x2c]
mov al, byte [edx + ebp]
and al, 3
mov dword [esp + 0x3c], edx
cmp al, 1
jne 0x10032061
test edi, edi
mov dword [esp + 0x50], edx
cmovs edi, edx
mov dword [esp + 0x2c], edi
cmp edx, ebx
jne 0x10031ff5
mov ebp, dword [esp + 0x48]
nop dword [eax]
cmp ebp, dword [esp + 0x38]
jge 0x10032079
inc ebp
jmp 0x1003207d
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x6c]
mov edx, dword [esi + ebp*8 + 4]
mov eax, edx
sub eax, ecx
jns 0x1003208f
mov eax, ecx
sub eax, edx
cmp eax, 5
jle 0x100320af
mov esi, dword [esi + ebp*8]
mov edx, esi
mov edi, dword [esp + 0x1c]
sub edx, edi
jns 0x100320a5
mov edx, edi
sub edx, esi
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x100320d9
mov eax, dword [esp + 0x70]
mov esi, ebp
mov dword [esp + 0x30], esi
mov al, byte [eax + ebp]
and al, 3
cmp al, 1
jne 0x100320d3
mov edi, dword [esp + 0x50]
test edi, edi
mov dword [esp + 0x2c], ebp
cmovs edi, ebp
mov dword [esp + 0x50], edi
cmp ebp, ebx
jne 0x10032070
jmp 0x100320dd
mov esi, dword [esp + 0x30]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x14]
movzx eax, word [ebp + 4]
test al, 0x10
je 0x100323ae
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov ebp, dword [eax + 0x28]
mov eax, 0x51eb851f
mul ebp
mov eax, dword [esp + 0x6c]
shr edx, 3
mov dword [esp + 0x90], edx
mov eax, dword [eax + esi*8]
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + edi*8]
mov esi, eax
sub esi, edi
sub edi, eax
test esi, esi
cmovns edi, esi
cmp edi, edx
mov edi, dword [esp + 0x30]
jge 0x100323c4
mov eax, dword [esp + 0x38]
mov edx, edi
sub edx, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
add edx, 2
cmp edx, eax
jg 0x100323c4
mov esi, dword [esp + 0x1c]
shr ebp, 2
mov dword [esp + 0x98], ebp
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, ebx
cmp eax, dword [esp + 0x34]
jle 0x1003216c
dec eax
jmp 0x10032170
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
mov edx, dword [edx + eax*8]
cmp edx, esi
jne 0x100321e9
cmp eax, ebx
jne 0x10032163
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
inc esi
mov dword [esp + 0x58], esi
cmp esi, edi
jb 0x10031e80
mov ecx, dword [esp + 0xa8]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
cmp eax, 0x80000000
je 0x10032491
cmp eax, 0x7fffffff
je 0x10032491
cmp byte [esp + 0x13], 0
je 0x1003247f
mov dword [esp + edi*4 + 0xb0], eax
inc edi
mov dword [esp + 0x64], edi
jmp 0x10032491
cmp eax, ebx
je 0x1003217f
cmp edx, esi
mov esi, edi
mov dword [esp + 0x1c], esi
setl byte [esp + 0x4f]
xor al, al
mov byte [esp + 0x12], al
test al, al
jne 0x10032224
mov eax, dword [esp + 0x70]
or ebp, 0xffffffff
mov esi, edi
mov byte [esp + 0x12], 1
mov dword [esp + 0x1c], esi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
cmove ebp, edi
mov dword [esp + 0x44], ebp
cmp edi, dword [esp + 0x38]
jge 0x1003222d
inc edi
jmp 0x10032231
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov eax, ecx
mov ebx, dword [edx + esi*8 + 4]
sub eax, ebx
mov dword [esp + 0xa0], ebx
jns 0x1003224a
mov eax, ebx
sub eax, ecx
cmp eax, dword [esp + 0x98]
jle 0x1003225e
xor al, al
mov byte [esp + 0x12], al
jmp 0x100322eb
mov eax, dword [edx + edi*8 + 4]
mov edx, eax
sub edx, ebx
sub ebx, eax
test edx, edx
cmovns ebx, edx
mov dword [esp + 0x9c], ebx
cmp ebx, 5
jle 0x100322a4
mov edx, dword [esp + 0x6c]
mov esi, dword [edx + esi*8]
mov eax, dword [edx + edi*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
lea eax, [ebx + ebx*4]
cmovns esi, edx
shl eax, 2
cmp esi, eax
mov esi, dword [esp + 0x1c]
jg 0x100322a4
xor al, al
mov byte [esp + 0x12], al
jmp 0x100322eb
mov eax, dword [esp + 0x70]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x100322ba
test ebp, ebp
mov dword [esp + 0x44], edi
cmovs ebp, edi
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + esi*8]
mov edx, dword [eax + edi*8]
cmp esi, edx
mov eax, edx
setl bl
sub eax, esi
sub esi, edx
test eax, eax
cmovns esi, eax
cmp bl, byte [esp + 0x4f]
jne 0x100322e3
cmp esi, dword [esp + 0x90]
jge 0x10032300
mov esi, dword [esp + 0x1c]
mov al, byte [esp + 0x12]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x10032200
mov edi, dword [esp + 0x30]
jmp 0x100323c8
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
lea eax, [edx + eax*8]
mov dword [esp + 0x90], eax
cmp edi, dword [esp + 0x38]
jge 0x10032329
inc edi
jmp 0x1003232d
mov edi, dword [esp + 0x34]
mov ecx, dword [edx + edi*8 + 4]
mov eax, ecx
sub eax, ebx
jns 0x1003233b
mov eax, ebx
sub eax, ecx
cmp eax, 5
jle 0x10032369
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + eax*8]
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [esi + esi*4]
cmovns edx, ecx
shl eax, 2
cmp edx, eax
jle 0x1003238b
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], edi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x10032383
test ebp, ebp
mov dword [esp + 0x44], edi
cmovs ebp, edi
cmp edi, dword [esp + 0x3c]
jne 0x10032320
jmp 0x10032398
cmp edi, dword [esp + 0x34]
jle 0x10032394
dec edi
jmp 0x10032398
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov edx, dword [esp + 0x6c]
mov ebx, eax
mov ecx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x44]
jmp 0x100323d4
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
jmp 0x100323d8
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x14]
test esi, esi
js 0x10032401
test eax, eax
js 0x10032401
mov esi, dword [edx + esi*8]
mov eax, dword [edx + eax*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
cmovns esi, edx
cmp esi, dword [esp + 0xa4]
jle 0x10032401
mov byte [esp + 0x12], 0
jmp 0x1003242f
mov edx, dword [esp + 0x70]
mov al, byte [edx + ebx]
and al, 3
cmp al, 1
jne 0x1003241e
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x1003241e
mov byte [esp + 0x12], 0
jmp 0x1003242f
movzx eax, word [ebp + 4]
mov byte [esp + 0x12], 1
test al, 4
jne 0x1003217f
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test byte [ebx + 4], 1
je 0x10032464
cmp ecx, eax
jle 0x10032193
mov eax, ecx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], cl
jmp 0x10032193
cmp ecx, eax
jge 0x10032193
mov eax, ecx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], cl
jmp 0x10032193
mov dword [esp + edx*4 + 0x17c], eax
inc edx
mov dword [esp + 0x40], edx
jmp 0x10032491
mov edx, dword [esp + 0x40]
mov al, byte [ecx]
test al, al
jne 0x10031e10
test edx, edx
jne 0x100324a7
test edi, edi
je 0x10032632
mov esi, 1
cmp edi, esi
jbe 0x100324ee
mov eax, esi
test esi, esi
je 0x100324e5
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x100324e5
mov dword [esp + eax*4 + 0xb0], ecx
mov dword [esp + eax*4 + 0xac], edx
sub eax, 1
jne 0x100324c0
inc esi
cmp esi, edi
jb 0x100324b0
mov edx, dword [esp + 0x40]
mov esi, 1
cmp edx, esi
jbe 0x10032565
mov eax, esi
test esi, esi
je 0x10032529
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x178]
mov edx, dword [esp + eax*4 + 0x17c]
cmp edx, ecx
jge 0x10032525
mov dword [esp + eax*4 + 0x17c], ecx
mov dword [esp + eax*4 + 0x178], edx
sub eax, 1
jne 0x10032500
mov edx, dword [esp + 0x40]
inc esi
cmp esi, edx
jb 0x100324f7
mov esi, dword [esp + 0x5c]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0xd8], eax
shr edx, 1
mov edx, dword [esp + edx*4 + 0x17c]
test edi, edi
jne 0x1003259c
mov dword [esi + 0xc], edx
mov dword [esi], edx
jmp 0x100325ac
mov esi, dword [esp + 0x5c]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0xd8], eax
test edx, edx
jne 0x10032551
shr edi, 1
mov edx, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], edx
mov dword [esi], edx
jmp 0x100325ac
shr edi, 1
mov dword [esi], edx
mov eax, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], eax
mov edx, dword [esi]
mov edi, dword [esi + 0xc]
cmp edi, edx
je 0x100325d7
xor ecx, ecx
mov eax, 0
cmp edi, edx
setg cl
test byte [ebx + 4], 3
setne al
cmp ecx, eax
je 0x100325d7
lea eax, [edx + edi]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
movzx eax, word [ebx + 4]
mov edx, eax
test al, 1
je 0x10032604
mov dword [esi + 0x20], 2
mov ecx, 2
movzx edx, word [ebx + 4]
movzx eax, dx
test dl, 2
je 0x10032616
or ecx, 4
mov dword [esi + 0x20], ecx
movzx eax, word [ebx + 4]
movzx edx, ax
test al, 4
je 0x10032627
or ecx, 8
mov dword [esi + 0x20], ecx
movzx edx, word [ebx + 4]
test dl, 8
je 0x10032632
or ecx, 0x10
mov dword [esi + 0x20], ecx
mov eax, dword [ebx + 8]
add ebx, 8
mov esi, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
cmp eax, 0x159b
jne 0x10031de0
mov edi, dword [esp + 0x5c]
mov ebp, dword [edi + 0xd8]
test ebp, ebp
je 0x10032710
xor eax, eax
test ebp, ebp
je 0x1003267c
lea ecx, [edi + 0xdc]
nop dword [eax]
mov dword [esp + eax*4 + 0x68], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x10032670
mov ebx, 1
cmp ebp, ebx
jbe 0x100326cc
mov edx, ebx
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x64]
test byte [eax + 0x20], 6
je 0x1003269e
mov esi, dword [eax]
jmp 0x100326a1
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x68]
test byte [ecx + 0x20], 6
je 0x100326af
mov edi, dword [ecx]
jmp 0x100326b2
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x100326c3
mov dword [esp + edx*4 + 0x68], eax
mov dword [esp + edx*4 + 0x64], ecx
sub edx, 1
jne 0x10032690
inc ebx
cmp ebx, ebp
jb 0x10032685
mov edi, dword [esp + 0x5c]
lea eax, [ebp - 1]
xor edx, edx
test eax, eax
je 0x10032703
mov eax, dword [esp + edx*4 + 0x68]
test byte [eax + 0x20], 6
je 0x100326e2
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x6c]
test byte [ecx + 0x20], 6
je 0x100326ef
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x100326f7
mov dword [eax], ecx
mov eax, dword [edi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x100326d5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x238
ret
mov edx, dword [esi + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jle 0x10032747
mov edi, dword [esp + 0xac]
lea ebx, [ecx + 0x42]
nop word [eax + eax]
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x10032741
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x10032730
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x238
ret