Function at 0x100047e0
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 + 0x101333e8]
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 0x100050af
nop
lea ecx, [eax + 0x10133c30]
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 0x10005092
nop dword [eax + eax]
mov byte [esp + 0x13], 0
cmp al, 0x20
jne 0x10004886
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x10004880
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10008a90
cmp dword [esp + 0x24], 0
mov ecx, eax
mov dword [esp + 0xa8], ecx
je 0x10004eed
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 0x10004c0b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x10004bf7
mov edx, ecx
mov ecx, dword [esp + 0x94]
push 1
call fcn.1000a7e0
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 0x10004bef
mov edx, dword [esp + 0x68]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x10004bef
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 0x10004e93
mov esi, dword [esp + 0x74]
movsx edi, word [esi + edi*2]
mov dword [esp + 0x2c], ebx
cmp edi, eax
jle 0x100049fd
mov edx, dword [esp + 0x14]
mov esi, eax
test byte [edx + 4], 3
mov edx, dword [esp + 0x6c]
lea edx, [edx + eax*8]
jne 0x100049b5
add edx, 4
test ebx, ebx
js 0x1000499a
mov eax, dword [edx]
cmp eax, ecx
jl 0x1000499a
cmp ebp, eax
jg 0x100049ab
mov ebp, eax
jmp 0x100049ab
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 0x10004988
jmp 0x100049df
add edx, 4
test ebx, ebx
js 0x100049ce
mov eax, dword [edx]
cmp eax, ecx
jg 0x100049ce
cmp dword [esp + 0x60], eax
jl 0x100049d7
mov dword [esp + 0x60], eax
jmp 0x100049d7
mov ecx, dword [edx]
mov ebx, esi
cmp ebp, ecx
cmovle ebp, ecx
inc esi
add edx, 8
cmp esi, edi
jle 0x100049b8
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x20], ebp
cmp ebx, dword [esp + 0x2c]
je 0x100049fd
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 0x10004962
test ebx, ebx
js 0x10004e8f
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 0x10004a5e
dec edx
jmp 0x10004a62
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
mov esi, dword [eax + edx*8 + 4]
mov eax, esi
sub eax, ecx
jns 0x10004a74
mov eax, ecx
sub eax, esi
cmp eax, 5
jle 0x10004aa7
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 0x10004a99
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 0x10004ac5
mov edi, dword [esp + 0x2c]
mov al, byte [edx + ebp]
and al, 3
mov dword [esp + 0x3c], edx
cmp al, 1
jne 0x10004ac1
test edi, edi
mov dword [esp + 0x50], edx
cmovs edi, edx
mov dword [esp + 0x2c], edi
cmp edx, ebx
jne 0x10004a55
mov ebp, dword [esp + 0x48]
nop dword [eax]
cmp ebp, dword [esp + 0x38]
jge 0x10004ad9
inc ebp
jmp 0x10004add
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x6c]
mov edx, dword [esi + ebp*8 + 4]
mov eax, edx
sub eax, ecx
jns 0x10004aef
mov eax, ecx
sub eax, edx
cmp eax, 5
jle 0x10004b0f
mov esi, dword [esi + ebp*8]
mov edx, esi
mov edi, dword [esp + 0x1c]
sub edx, edi
jns 0x10004b05
mov edx, edi
sub edx, esi
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x10004b39
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 0x10004b33
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 0x10004ad0
jmp 0x10004b3d
mov esi, dword [esp + 0x30]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x14]
movzx eax, word [ebp + 4]
test al, 0x10
je 0x10004e0e
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 0x10004e24
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 0x10004e24
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 0x10004bcc
dec eax
jmp 0x10004bd0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
mov edx, dword [edx + eax*8]
cmp edx, esi
jne 0x10004c49
cmp eax, ebx
jne 0x10004bc3
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 0x100048e0
mov ecx, dword [esp + 0xa8]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
cmp eax, 0x80000000
je 0x10004ef1
cmp eax, 0x7fffffff
je 0x10004ef1
cmp byte [esp + 0x13], 0
je 0x10004edf
mov dword [esp + edi*4 + 0xb0], eax
inc edi
mov dword [esp + 0x64], edi
jmp 0x10004ef1
cmp eax, ebx
je 0x10004bdf
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 0x10004c84
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 0x10004c8d
inc edi
jmp 0x10004c91
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 0x10004caa
mov eax, ebx
sub eax, ecx
cmp eax, dword [esp + 0x98]
jle 0x10004cbe
xor al, al
mov byte [esp + 0x12], al
jmp 0x10004d4b
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 0x10004d04
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 0x10004d04
xor al, al
mov byte [esp + 0x12], al
jmp 0x10004d4b
mov eax, dword [esp + 0x70]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x10004d1a
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 0x10004d43
cmp esi, dword [esp + 0x90]
jge 0x10004d60
mov esi, dword [esp + 0x1c]
mov al, byte [esp + 0x12]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x10004c60
mov edi, dword [esp + 0x30]
jmp 0x10004e28
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 0x10004d89
inc edi
jmp 0x10004d8d
mov edi, dword [esp + 0x34]
mov ecx, dword [edx + edi*8 + 4]
mov eax, ecx
sub eax, ebx
jns 0x10004d9b
mov eax, ebx
sub eax, ecx
cmp eax, 5
jle 0x10004dc9
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 0x10004deb
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 0x10004de3
test ebp, ebp
mov dword [esp + 0x44], edi
cmovs ebp, edi
cmp edi, dword [esp + 0x3c]
jne 0x10004d80
jmp 0x10004df8
cmp edi, dword [esp + 0x34]
jle 0x10004df4
dec edi
jmp 0x10004df8
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 0x10004e34
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 0x10004e38
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 0x10004e61
test eax, eax
js 0x10004e61
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 0x10004e61
mov byte [esp + 0x12], 0
jmp 0x10004e8f
mov edx, dword [esp + 0x70]
mov al, byte [edx + ebx]
and al, 3
cmp al, 1
jne 0x10004e7e
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x10004e7e
mov byte [esp + 0x12], 0
jmp 0x10004e8f
movzx eax, word [ebp + 4]
mov byte [esp + 0x12], 1
test al, 4
jne 0x10004bdf
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 0x10004ec4
cmp ecx, eax
jle 0x10004bf3
mov eax, ecx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], cl
jmp 0x10004bf3
cmp ecx, eax
jge 0x10004bf3
mov eax, ecx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], cl
jmp 0x10004bf3
mov dword [esp + edx*4 + 0x17c], eax
inc edx
mov dword [esp + 0x40], edx
jmp 0x10004ef1
mov edx, dword [esp + 0x40]
mov al, byte [ecx]
test al, al
jne 0x10004870
test edx, edx
jne 0x10004f07
test edi, edi
je 0x10005092
mov esi, 1
cmp edi, esi
jbe 0x10004f4e
mov eax, esi
test esi, esi
je 0x10004f45
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xac]
mov edx, dword [esp + eax*4 + 0xb0]
cmp edx, ecx
jge 0x10004f45
mov dword [esp + eax*4 + 0xb0], ecx
mov dword [esp + eax*4 + 0xac], edx
sub eax, 1
jne 0x10004f20
inc esi
cmp esi, edi
jb 0x10004f10
mov edx, dword [esp + 0x40]
mov esi, 1
cmp edx, esi
jbe 0x10004fc5
mov eax, esi
test esi, esi
je 0x10004f89
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x178]
mov edx, dword [esp + eax*4 + 0x17c]
cmp edx, ecx
jge 0x10004f85
mov dword [esp + eax*4 + 0x17c], ecx
mov dword [esp + eax*4 + 0x178], edx
sub eax, 1
jne 0x10004f60
mov edx, dword [esp + 0x40]
inc esi
cmp esi, edx
jb 0x10004f57
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 0x10004ffc
mov dword [esi + 0xc], edx
mov dword [esi], edx
jmp 0x1000500c
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 0x10004fb1
shr edi, 1
mov edx, dword [esp + edi*4 + 0xb0]
mov dword [esi + 0xc], edx
mov dword [esi], edx
jmp 0x1000500c
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 0x10005037
xor ecx, ecx
mov eax, 0
cmp edi, edx
setg cl
test byte [ebx + 4], 3
setne al
cmp ecx, eax
je 0x10005037
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 0x10005064
mov dword [esi + 0x20], 2
mov ecx, 2
movzx edx, word [ebx + 4]
movzx eax, dx
test dl, 2
je 0x10005076
or ecx, 4
mov dword [esi + 0x20], ecx
movzx eax, word [ebx + 4]
movzx edx, ax
test al, 4
je 0x10005087
or ecx, 8
mov dword [esi + 0x20], ecx
movzx edx, word [ebx + 4]
test dl, 8
je 0x10005092
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 0x10004840
mov edi, dword [esp + 0x5c]
mov ebp, dword [edi + 0xd8]
test ebp, ebp
je 0x10005170
xor eax, eax
test ebp, ebp
je 0x100050dc
lea ecx, [edi + 0xdc]
nop dword [eax]
mov dword [esp + eax*4 + 0x68], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x100050d0
mov ebx, 1
cmp ebp, ebx
jbe 0x1000512c
mov edx, ebx
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x64]
test byte [eax + 0x20], 6
je 0x100050fe
mov esi, dword [eax]
jmp 0x10005101
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x68]
test byte [ecx + 0x20], 6
je 0x1000510f
mov edi, dword [ecx]
jmp 0x10005112
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x10005123
mov dword [esp + edx*4 + 0x68], eax
mov dword [esp + edx*4 + 0x64], ecx
sub edx, 1
jne 0x100050f0
inc ebx
cmp ebx, ebp
jb 0x100050e5
mov edi, dword [esp + 0x5c]
lea eax, [ebp - 1]
xor edx, edx
test eax, eax
je 0x10005163
mov eax, dword [esp + edx*4 + 0x68]
test byte [eax + 0x20], 6
je 0x10005142
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x6c]
test byte [ecx + 0x20], 6
je 0x1000514f
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x10005157
mov dword [eax], ecx
mov eax, dword [edi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x10005135
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 0x100051a7
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 0x100051a1
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jl 0x10005190
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x238
ret