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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10065688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x44], edx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x10047886
xor al, al
jmp 0x1004819f
push 3
lea ecx, [esp + 0xe4]
call fcn.1001aa9f
mov dword [esp + 0x154], ebx
mov dword [esp + 0x30], ebx
jmp 0x100478b1
mov eax, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x7c], 0xe1757117
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 3
jl 0x100478a1
lea edx, [esp + 0xe0]
lea ecx, [esp + 0x30]
call fcn.1004694f
push 0xffffffffffffffff
mov dword [esp + 0x88], ebx
pop esi
jmp 0x100479ae
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0xbc781ced
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x1c], 0x6950a4ba
mov dword [esp + 0x1c], 9
mov dword [esp + 0x20], 0x7fc0549e
mov dword [esp + 0x14], 0xffffffed
jmp 0x1004799c
push 4
lea ecx, [esp + 0xd8]
call fcn.1001aa9f
mov byte [esp + 0x154], 1
mov dword [esp + 0x6c], 1
mov dword [esp + 0x10], ebx
jmp 0x1004794a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xd4]
mov dword [eax + ecx*4], 0x51cd
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x10047934
mov dword [esp + 0x10], ebx
jmp 0x1004796a
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x130], 0xb3895196
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x10047957
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x6c]
call fcn.10046a9e
dec dword [esp + 0x20]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x154], bl
call fcn.1001ab21
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 4
je 0x10047910
dec dword [esp + 0x84]
cmp dword [esp + 0x84], 0xfffffff3
jne 0x100478d7
lea ecx, [esp + 0xe0]
mov dword [esp + 0x154], esi
call fcn.1001ab21
lea eax, [esp + 0x44]
push eax
push 0x26e4
push ebx
call fcn.10048e60
mov dword [esp + 0x1c], 0xb0f73838
mov eax, 0x3aa9ac70
mov dword [esp + 0xa4], eax
add esp, 0xc
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x20], 5
mov dword [esp + 0x1c], 0xc995f762
mov dword [esp + 0x14], ebx
jmp 0x10047a34
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x124], 0xfffffff7
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x10047a21
cmp dword [esp + 0x10], ebx
je 0x10047a5a
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10047bb5
call fcn.10047173
jmp 0x10047bb5
mov dword [esp + 0x28], 0xecf7921e
lea ecx, [esp + 0xf8]
mov dword [esp + 0x1c], 0x5de1fc65
push 1
call fcn.1001aa9f
push 1
lea ecx, [esp + 0xc0]
mov dword [esp + 0x158], 2
call fcn.1001aa9f
xor edx, edx
mov byte [esp + 0x154], 3
mov dword [esp + 0x10], ebx
inc edx
jmp 0x10047ab8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xf8]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x10047aa2
mov dword [esp + 0x10], ebx
jmp 0x10047ad6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xbc]
mov dword [eax + ecx*4], edx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x10047ac4
mov dword [esp + 0x10], 3
cmp dword [esp + 0x10], ebx
jl 0x10047b86
mov dword [esp + 0x20], esi
lea ecx, [esp + 0xec]
push 3
call fcn.1001aa9f
mov byte [esp + 0x154], 4
mov dword [esp + 0x14], ebx
jmp 0x10047b20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xec]
mov dword [eax + ecx*4], esi
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x10047b0e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xbc]
mov eax, dword [esp + eax*4 + 0x98]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x98]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x98]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], esi
call fcn.1004717c
lea ecx, [esp + 0xec]
mov byte [esp + 0x154], 3
call fcn.1001ab21
dec dword [esp + 0x10]
jns 0x10047aee
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10047b96
call fcn.10047371
lea ecx, [esp + 0xbc]
call fcn.1001ab21
lea ecx, [esp + 0xf8]
mov dword [esp + 0x154], esi
call fcn.1001ab21
mov dword [esp + 0x10], 0xb
jmp 0x10047bd3
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10047bcf
call fcn.100474ae
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1b
jl 0x10047bbf
cmp dword [edi + 0x14], 0x10
jb 0x10047be4
mov ecx, dword [edi]
jmp 0x10047be6
mov ecx, edi
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x34], ecx
jb 0x10047bf4
mov edx, dword [edi]
jmp 0x10047bf6
mov edx, edi
mov eax, dword [edi + 0x10]
add eax, edx
cmp ecx, eax
je 0x1004819d
mov dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], 0x414b58e1
mov dword [esp + 0x64], esi
mov dword [esp + 0x1c], 0x85e0710
mov dword [esp + 0x2c], 5
mov dword [esp + 0x1c], 0xf4f23013
push 2
call fcn.1001aa9f
mov dword [esp + 0x154], 5
xor edx, edx
mov dword [esp + 0x68], 0x2811ffbe
inc edx
mov dword [esp + 0x14], 0x905f
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
jmp 0x10047c78
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xb4], 0x8bbca631
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10047c65
mov dword [esp + 0x10], ebx
jmp 0x10047c97
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xa8]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10047c85
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], ebx
jl 0x10047d85
mov dword [esp + 0x14], edx
mov dword [esp + 0x4c], 5
mov dword [esp + 0x4c], 0x7ee39f3f
mov dword [esp + 0x28], 0x9a130dfd
mov dword [esp + 0x20], 0x7790
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], ebx
jl 0x10047d7b
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x20]
cmp eax, ecx
jne 0x10047d26
mov ecx, dword [esp + 0x64]
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp ecx, 0xfffffffb
setne al
cmp dword [esp + 0x14], eax
jl 0x10047d26
mov edx, ebx
mov eax, dword [esp + 0x10]
xor ecx, ecx
push 1
mov esi, dword [esp + eax*4 + 0xb8]
mov eax, dword [esp + 0x50]
cmp edx, eax
sete cl
xor edx, edx
cmp esi, ecx
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x94]
setle dl
add ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x2c]
sete dl
xor ecx, ecx
cmp edx, eax
pop edx
setle cl
mov dword [esp + 0x28], ecx
dec dword [esp + 0x14]
push 0xffffffffffffffff
pop esi
jns 0x10047cde
or esi, esi
dec dword [esp + 0x10]
jns 0x10047cac
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
neg ecx
sbb ecx, ecx
xor eax, eax
neg ecx
cmp ecx, 0x99ff
setg al
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0xa8]
setns cl
cmp ecx, dword [eax + 4]
je 0x10047dd9
cmp dword [esp + 0x1c], ebx
je 0x10047dd9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x1c], 0x54eb856a
mov dword [esp + 0x28], 0x20a048c8
dec dword [esp + 0x28]
jmp 0x10047e27
mov dword [esp + 0x14], ebx
jmp 0x10047e21
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], ebx
jl 0x10047e12
mov dword [esp + 0x2c], ebx
jmp 0x10047e06
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xa8]
call fcn.100474ba
inc dword [esp + 0x2c]
xor edx, edx
inc edx
cmp dword [esp + 0x2c], edx
jle 0x10047def
dec dword [esp + 0x10]
jns 0x10047de9
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0xb4]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edx
jle 0x10047ddf
lea ecx, [esp + 0xa8]
mov dword [esp + 0x154], esi
call fcn.1001ab21
mov eax, dword [esp + 0x34]
mov al, byte [eax]
cmp al, 0x30
jl 0x1004803a
cmp al, 0x39
jg 0x1004803a
lea eax, [esp + 0x44]
push eax
push 0x4756
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.10049824
add esp, 0x10
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x40], 0xc0e3e763
push 3
call fcn.1001aa9f
mov dword [esp + 0x154], 6
mov dword [esp + 0x50], 0x377d6446
mov dword [esp + 0x60], 0x7504ed09
mov dword [esp + 0x1c], 0x76c56d20
mov dword [esp + 0x70], 0xa5659cde
mov dword [esp + 0x74], 0xd786ff52
mov dword [esp + 0x48], 0x60a2fc53
mov dword [esp + 0x78], 0x65e1
mov dword [esp + 0x14], ebx
jmp 0x10047ee5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc8]
mov dword [eax + ecx*4], 0x28ca
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x10047ecf
mov eax, dword [esp + 0x24]
xor edx, edx
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov eax, dword [esp + 0x24]
setne dl
sub eax, edx
xor edx, edx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
cmp ecx, eax
mov eax, dword [esp + 0x24]
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x24]
setge cl
xor edx, edx
add eax, ecx
imul ecx, eax, 0x661f
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov eax, 0x9fa8bc07
setl dl
cmp eax, edx
mov eax, dword [esp + 0x24]
sbb ecx, ecx
inc ecx
sub ecx, eax
cmp ecx, dword [esp + 0x24]
jge 0x10047f6c
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10047fe1
call fcn.1004756b
jmp 0x10047fe1
mov dword [esp + 0x1c], 1
mov eax, 0x62a4b15
mov dword [esp + 0x1c], 0x78d7cbae
mov dword [esp + 0x1c], 0xfffffffa
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x14], 2
cmp dword [esp + 0x14], ebx
jl 0x10047fe1
mov dword [esp + 0x10], ebx
jmp 0x10047fcc
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x13c], 0x4f77722a
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x10047fb9
dec dword [esp + 0x48]
mov eax, dword [esp + 0x14]
dec dword [esp + 0x14]
jns 0x10047fb3
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x78]
push eax
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x6c]
call fcn.10047574
add esp, 0x1c
mov dword [esp + 0x154], esi
lea ecx, [esp + 0xc8]
call fcn.1001ab21
mov ecx, dword [esp + 0x34]
inc ecx
jmp 0x10047be6
lea ecx, [esp + 0x44]
call fcn.1004783d
push dword [esp + 0x50]
movdqa xmm0, xmmword [0x1000bde0]
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x5c], ebx
push eax
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], ebx
movdqu xmmword [esp + 0x124], xmm0
mov dword [esp + 0x6c], ebx
call fcn.1001d49c
mov dword [esp + 0x20], 0x7e80d68f
mov dword [esp + 0x14], ebx
jmp 0x1004809c
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x38], 0xfffffff8
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x1004808c
mov esi, dword [esp + 0x54]
mov dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], 0x5833
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x1c], 0x30477ae2
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x100480d6
call fcn.10047843
mov eax, dword [esi + 8]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esi + 8]
mov dword [esp + eax*4 + 0x38], ecx
test ecx, ecx
jne 0x10048159
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0xffff
mov eax, dword [esp + eax*4 + 0x38]
cmp dword [esp + 0x14], eax
jne 0x1004810a
mov eax, dword [esi + 8]
cmp dword [esp + eax*4 + 0x38], ebx
jne 0x1004810a
mov edi, ebx
jmp 0x1004810d
xor edi, edi
inc edi
inc dword [esp + 0x28]
mov eax, dword [esi + 8]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x54]
sub ecx, dword [eax + 0xc]
mov eax, dword [esi + 8]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov eax, dword [esi + 8]
setl dl
mov eax, dword [esp + eax*4 + 0x38]
imul eax, edx
imul eax, edi
test eax, eax
je 0x1004814f
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], ebx
jne 0x10048159
mov eax, ebx
jmp 0x1004815c
xor eax, eax
inc eax
cmp eax, 0xb37d0226
sbb eax, eax
neg eax
add eax, 0xffff
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov eax, dword [esp + eax*4 + 0x38]
sub eax, dword [esi + 4]
imul eax, eax, 0xf953
inc dword [esi + 8]
cmp dword [esi + 8], 1
mov dword [esp + 0x1c], eax
jle 0x100480aa
lea ecx, [esp + 0x54]
call fcn.1001ab21
jmp 0x1004787f
mov al, 1
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret