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

Disassembly:
sub esp, 0x238
mov eax, dword [0x101f80c0]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x60], edx
push ebp
push esi
push edi
mov eax, dword [ebx]
lea esi, [ebx + 0x2678]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x80], eax
mov dword [esp + 0x64], ebx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x54], esi
lea edi, [eax*8 + 0x101c9020]
mov eax, 0x24924925
mul ecx
mov eax, dword [edi]
sub ecx, edx
mov dword [esp + 0x20], edi
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0x7c], ecx
cmp eax, 0x159b
je 0x10041eed
nop word [eax + eax]
lea ecx, [eax + 0x101c7760]
xor esi, esi
mov al, byte [ecx]
xor ebp, ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x58], esi
test al, al
je 0x10041ed0
xor bl, bl
mov byte [esp + 0x13], bl
cmp al, 0x20
jne 0x10041676
nop
inc ecx
cmp byte [ecx], 0x20
je 0x10041670
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10045ac0
mov edx, dword [esp + 0x68]
mov ecx, eax
mov dword [esp + 0x5c], ecx
test edx, edx
je 0x10041d20
test byte [edi + 4], 1
mov eax, 0
mov dword [esp + 0x1c], 0
setne al
add eax, 0x7fffffff
test edx, edx
je 0x10041a2e
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
nop dword [eax + eax]
mov byte [esp + 0x12], 0
test edx, edx
je 0x10041a13
mov esi, dword [esp + 0x6c]
mov ecx, esi
push 1
call fcn.10047990
mov ecx, dword [esi + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x94], ecx
movups xmmword [esp + 0x84], xmm0
test eax, eax
jne 0x10041a07
mov ecx, dword [esp + 0x84]
mov eax, ecx
shr eax, 0x10
cmp ax, 2
jle 0x10041a07
movsx esi, cx
xor edi, edi
mov dword [esp + 0x48], esi
xor eax, eax
mov ecx, dword [esp + 0x48]
xor esi, esi
or ebx, 0xffffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], esi
test ecx, ecx
jle 0x10041cc1
mov edx, dword [esp + 0x90]
movsx esi, word [edx + esi*2]
mov dword [esp + 0x34], ebx
cmp esi, eax
jle 0x100417f8
mov ecx, dword [esp + 0x20]
mov edx, eax
test byte [ecx + 4], 3
mov ecx, dword [esp + 0x88]
lea ecx, [ecx + eax*8]
jne 0x100417ad
add ecx, 4
nop dword [eax]
test ebx, ebx
js 0x10041792
mov eax, dword [ecx]
cmp eax, edi
jl 0x10041792
cmp ebp, eax
jg 0x100417a3
mov ebp, eax
jmp 0x100417a3
mov eax, dword [esp + 0x58]
mov ebx, edx
mov edi, dword [ecx]
cmp eax, edi
cmovge eax, edi
mov dword [esp + 0x58], eax
inc edx
add ecx, 8
cmp edx, esi
jle 0x10041780
jmp 0x100417d7
add ecx, 4
test ebx, ebx
js 0x100417c6
mov eax, dword [ecx]
cmp eax, edi
jg 0x100417c6
cmp dword [esp + 0x58], eax
jl 0x100417cf
mov dword [esp + 0x58], eax
jmp 0x100417cf
mov edi, dword [ecx]
mov ebx, edx
cmp ebp, edi
cmovle ebp, edi
inc edx
add ecx, 8
cmp edx, esi
jle 0x100417b0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x28], ebp
cmp ebx, dword [esp + 0x34]
je 0x100417f8
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
lea eax, [esi + 1]
mov esi, dword [esp + 0x38]
inc esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], esi
cmp esi, ecx
jl 0x10041754
test ebx, ebx
js 0x10041cc1
mov eax, dword [esp + 0x88]
or edx, 0xffffffff
mov ebp, dword [esp + 0x8c]
mov ecx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], ebx
mov al, byte [eax + ebx]
and al, 3
cmp al, 1
cmove edx, ebx
mov esi, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x34], esi
nop dword [eax]
cmp ecx, dword [esp + 0x3c]
jle 0x10041869
dec ecx
jmp 0x1004186d
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x88]
mov edx, dword [eax + ecx*8 + 4]
mov eax, edx
sub eax, edi
jns 0x10041882
mov eax, edi
sub eax, edx
cmp eax, 5
jle 0x100418c1
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0x88]
mov esi, dword [edx + ecx*8]
mov edx, esi
sub edx, dword [ebp + ebx*8]
mov ebp, dword [esp + 0x8c]
jns 0x100418b3
mov edx, dword [esp + 0x88]
mov edx, dword [edx + ebx*8]
sub edx, esi
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x100418df
mov esi, dword [esp + 0x34]
mov al, byte [ecx + ebp]
and al, 3
mov dword [esp + 0x44], ecx
cmp al, 1
jne 0x100418db
test esi, esi
mov dword [esp + 0x50], ecx
cmovs esi, ecx
mov dword [esp + 0x34], esi
cmp ecx, ebx
jne 0x10041860
mov ebp, dword [esp + 0x48]
cmp ebp, dword [esp + 0x40]
jge 0x100418ec
inc ebp
jmp 0x100418f0
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x88]
mov ecx, dword [edx + ebp*8 + 4]
mov eax, ecx
sub eax, edi
jns 0x10041905
mov eax, edi
sub eax, ecx
cmp eax, 5
jle 0x10041925
mov edx, dword [edx + ebp*8]
mov ecx, edx
mov esi, dword [esp + 0x14]
sub ecx, esi
jns 0x1004191b
mov ecx, esi
sub ecx, edx
lea eax, [eax + eax*4]
shl eax, 2
cmp ecx, eax
jle 0x10041952
mov eax, dword [esp + 0x8c]
mov ecx, ebp
mov dword [esp + 0x38], ecx
mov al, byte [eax + ebp]
and al, 3
cmp al, 1
jne 0x1004194c
mov esi, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0x34], ebp
cmovs esi, ebp
mov dword [esp + 0x50], esi
cmp ebp, ebx
jne 0x100418e3
jmp 0x10041956
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x20]
test byte [ebp + 4], 0x10
je 0x10041c3c
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x44]
mov ebp, dword [eax + 0x28]
mov eax, 0x51eb851f
mul ebp
mov eax, dword [esp + 0x88]
shr edx, 3
mov dword [esp + 0x74], edx
mov eax, dword [eax + ecx*8]
mov ecx, dword [esp + 0x88]
mov esi, dword [ecx + esi*8]
mov ecx, eax
sub ecx, esi
sub esi, eax
test ecx, ecx
cmovns esi, ecx
cmp esi, edx
mov esi, dword [esp + 0x38]
jge 0x10041c55
mov eax, dword [esp + 0x40]
mov ecx, esi
sub ecx, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
add ecx, 2
cmp ecx, eax
jg 0x10041c55
mov edx, dword [esp + 0x14]
shr ebp, 2
mov dword [esp + 0x70], ebp
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x4c], eax
mov eax, ebx
nop word [eax + eax]
cmp eax, dword [esp + 0x3c]
jle 0x100419e9
dec eax
jmp 0x100419ed
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + eax*8]
cmp ecx, edx
jne 0x10041a61
cmp eax, ebx
jne 0x100419e0
mov bl, byte [esp + 0x13]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x68]
jb 0x100416d0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
cmp eax, 0x80000000
je 0x10041d24
cmp eax, 0x7fffffff
je 0x10041d24
test bl, bl
je 0x10041d12
mov dword [esp + edx*4 + 0xac], eax
inc edx
mov dword [esp + 0x30], edx
jmp 0x10041d24
cmp eax, ebx
je 0x100419ff
cmp ecx, edx
mov ecx, esi
mov dword [esp + 0x14], ecx
setl dh
xor al, al
mov byte [esp + 0x1b], dh
mov byte [esp + 0x12], al
nop word [eax + eax]
test al, al
jne 0x10041aa7
mov eax, dword [esp + 0x8c]
or ebp, 0xffffffff
mov ecx, esi
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], ecx
mov al, byte [esi + eax]
and al, 3
cmp al, 1
cmove ebp, esi
mov dword [esp + 0x4c], ebp
cmp esi, dword [esp + 0x40]
jge 0x10041ab0
inc esi
jmp 0x10041ab4
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x88]
mov ebx, dword [eax + ecx*8 + 4]
mov eax, edi
sub eax, ebx
jns 0x10041ac9
mov eax, ebx
sub eax, edi
cmp eax, dword [esp + 0x70]
jle 0x10041ada
xor al, al
mov byte [esp + 0x12], al
jmp 0x10041b72
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + esi*8 + 4]
sub ecx, ebx
sub ebx, dword [eax + esi*8 + 4]
test ecx, ecx
cmovns ebx, ecx
mov dword [esp + 0x78], ebx
cmp ebx, 5
jle 0x10041b26
mov edx, dword [esp + 0x14]
mov ecx, eax
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + esi*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [ebx + ebx*4]
cmovns edx, ecx
shl eax, 2
cmp edx, eax
mov dh, byte [esp + 0x1b]
jg 0x10041b26
xor al, al
mov byte [esp + 0x12], al
jmp 0x10041b6e
mov eax, dword [esp + 0x8c]
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x10041b3f
test ebp, ebp
mov dword [esp + 0x4c], esi
cmovs ebp, esi
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + esi*8]
mov ebx, dword [ebx + eax*8]
cmp ebx, ecx
mov eax, ecx
setl dl
sub eax, ebx
sub ebx, ecx
test eax, eax
cmovns ebx, eax
cmp dl, dh
jne 0x10041b6a
cmp ebx, dword [esp + 0x74]
jge 0x10041b87
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
cmp esi, ebx
jne 0x10041a80
mov esi, dword [esp + 0x38]
jmp 0x10041c59
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x78]
mov ebx, dword [eax + edx*8 + 4]
nop word [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x10041ba9
inc esi
jmp 0x10041bad
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax + esi*8 + 4]
mov eax, ecx
sub eax, ebx
jns 0x10041bbb
mov eax, ebx
sub eax, ecx
cmp eax, 5
jle 0x10041bea
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x48]
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + eax*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [edi + edi*4]
cmovns edx, ecx
shl eax, 2
cmp edx, eax
jle 0x10041c16
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x4c], esi
mov al, byte [esi + eax]
and al, 3
cmp al, 1
jne 0x10041c07
test ebp, ebp
mov dword [esp + 0x4c], esi
cmovs ebp, esi
cmp esi, dword [esp + 0x44]
je 0x10041c23
mov eax, dword [esp + 0x88]
jmp 0x10041ba0
cmp esi, dword [esp + 0x3c]
jle 0x10041c1f
dec esi
jmp 0x10041c23
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov edx, ebp
mov ecx, dword [esp + 0x88]
mov ebx, eax
mov edi, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x4c]
jmp 0x10041c68
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
jmp 0x10041c6c
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov ebp, dword [esp + 0x20]
test edx, edx
js 0x10041c92
test eax, eax
js 0x10041c92
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + eax*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
cmovns edx, ecx
cmp edx, dword [esp + 0x7c]
jle 0x10041c92
mov byte [esp + 0x12], 0
jmp 0x10041cc1
mov ecx, dword [esp + 0x8c]
mov al, byte [ecx + ebx]
and al, 3
cmp al, 1
jne 0x10041cb2
mov al, byte [ecx + esi]
and al, 3
cmp al, 1
jne 0x10041cb2
mov byte [esp + 0x12], 0
jmp 0x10041cc1
test byte [ebp + 4], 4
mov byte [esp + 0x12], 1
jne 0x100419ff
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
test byte [eax + 4], 1
mov eax, dword [esp + 0x2c]
je 0x10041cf2
cmp edi, eax
jle 0x10041d09
mov bl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x10041a13
cmp edi, eax
jge 0x10041d09
mov bl, byte [esp + 0x12]
mov eax, edi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x10041a13
mov bl, byte [esp + 0x13]
jmp 0x10041a13
mov dword [esp + esi*4 + 0x178], eax
inc esi
mov dword [esp + 0x60], esi
jmp 0x10041d24
mov edx, dword [esp + 0x30]
mov al, byte [ecx]
test al, al
jne 0x10041664
mov ebx, dword [esp + 0x58]
mov eax, edx
test esi, esi
jne 0x10041d48
mov dword [esp + 0x60], esi
mov dword [esp + 0x30], edx
test eax, eax
je 0x10041ed0
mov esi, 1
cmp edx, esi
jbe 0x10041d8e
mov eax, esi
test esi, esi
je 0x10041d89
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xa8]
mov edx, dword [esp + eax*4 + 0xac]
cmp edx, ecx
jge 0x10041d85
mov dword [esp + eax*4 + 0xac], ecx
mov dword [esp + eax*4 + 0xa8], edx
sub eax, 1
jne 0x10041d60
mov edx, dword [esp + 0x30]
inc esi
cmp esi, edx
jb 0x10041d51
mov edi, dword [esp + 0x60]
mov esi, 1
cmp edi, esi
jbe 0x10041e11
nop dword [eax + eax]
mov eax, esi
test esi, esi
je 0x10041dd5
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x174]
mov edx, dword [esp + eax*4 + 0x178]
cmp edx, ecx
jge 0x10041dd5
mov dword [esp + eax*4 + 0x178], ecx
mov dword [esp + eax*4 + 0x174], edx
sub eax, 1
jne 0x10041db0
inc esi
cmp esi, edi
jb 0x10041da0
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0xd8]
lea eax, [ecx*8 + 0x37]
add eax, ecx
lea esi, [edx + eax*4]
lea eax, [ecx + 1]
mov dword [edx + 0xd8], eax
mov edx, dword [esp + 0x30]
shr edi, 1
mov eax, dword [esp + edi*4 + 0x178]
test edx, edx
jne 0x10041e48
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10041e56
mov esi, dword [esp + 0x54]
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 + 0x54]
mov dword [ecx + 0xd8], eax
test edi, edi
jne 0x10041dfd
shr edx, 1
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x10041e56
shr edx, 1
mov dword [esi], eax
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
cmp edi, edx
je 0x10041e87
mov eax, dword [esp + 0x20]
mov ecx, 0
test byte [eax + 4], 3
setne cl
xor eax, eax
cmp edi, edx
setg al
cmp eax, ecx
je 0x10041e87
lea eax, [edi + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0
test byte [edi + 4], 1
je 0x10041eac
mov dword [esi + 0x20], 2
mov eax, 2
test byte [edi + 4], 2
je 0x10041eb8
or eax, 4
mov dword [esi + 0x20], eax
test byte [edi + 4], 4
je 0x10041ec4
or eax, 8
mov dword [esi + 0x20], eax
test byte [edi + 4], 8
je 0x10041ed0
or eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
add edi, 8
mov dword [esp + 0x20], edi
cmp eax, 0x159b
jne 0x10041640
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
mov ebp, dword [esi + 0xd8]
test ebp, ebp
je 0x10041fc8
xor eax, eax
test ebp, ebp
je 0x10041f1f
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x84], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x10041f10
mov ebx, 1
cmp ebp, ebx
jbe 0x10041f7a
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x80]
test byte [eax + 0x20], 6
je 0x10041f43
mov esi, dword [eax]
jmp 0x10041f46
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x84]
test byte [ecx + 0x20], 6
je 0x10041f57
mov edi, dword [ecx]
jmp 0x10041f5a
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x10041f71
mov dword [esp + edx*4 + 0x84], eax
mov dword [esp + edx*4 + 0x80], ecx
sub edx, 1
jne 0x10041f32
inc ebx
cmp ebx, ebp
jb 0x10041f30
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0xd8]
xor edx, edx
sub eax, 1
je 0x10041fc4
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x10041fa0
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x10041fb0
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10041fb8
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x10041f90
xor eax, eax
jmp 0x10041ffc
mov edx, dword [ebx + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jle 0x10041ff7
mov edi, dword [esp + 0x80]
lea ebx, [ecx + 0x42]
nop
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x10041ff1
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x10041fe0
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018daa9
add esp, 0x238
ret