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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10068b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x50], edx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x10031ef7
xor al, al
jmp 0x10032433
push 1
lea ecx, [esp + 0x68]
call fcn.1002a48a
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x38], 0xd0a7084b
mov dword [esp + 0x14], 0xffff
mov dword [esp + 0x10], ebx
jmp 0x10031f32
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xa0], 0x3342eb9
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10031f1f
mov dword [esp + 0x10], ebx
jmp 0x10031f52
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov dword [eax + ecx*4], 0x2cb13638
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x10031f3f
mov eax, dword [esp + 0x64]
mov dword [eax], ebx
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10031f6f
call fcn.10031399
mov eax, dword [esp + 0x64]
inc dword [eax]
cmp dword [eax], 1
jle 0x10031f5f
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], 0x3a
jle 0x10032068
mov edi, 0x10659e90
mov dword [esp + 0x20], 0x183f
cmp dword [esp + 0x20], 0x443
jge 0x1003204c
lea eax, [esp + 0x58]
push eax
push ecx
lea eax, [esp + 0x78]
mov ecx, 0x10659f38
push eax
call fcn.100360b0
pop ecx
mov ecx, eax
call fcn.100360b0
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x5c], edx
jl 0x10031fdb
jg 0x10031fd7
cmp dword [esp + 0x58], ecx
jb 0x10031fdb
push edx
push ecx
jmp 0x1003203e
sub ecx, dword [esp + 0x58]
sbb edx, dword [esp + 0x5c]
shld edx, ecx, 3
shl ecx, 3
add ecx, 1
adc edx, ebx
call fcn.10067def
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.1004d294
fld1
fsubp st(1)
fmul qword [0x10008630]
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
movsd qword [esp], xmm0
call fcn.10050c80
mov edx, dword [esp + 0x64]
pop ecx
pop ecx
mov ecx, dword [esp + 0x58]
fstp qword [esp + 0x38]
call fcn.10067def
addsd xmm0, qword [esp + 0x38]
call fcn.10067c4f
push edx
push eax
mov ecx, edi
call fcn.1002a368
push eax
call fcn.1002f61d
pop ecx
mov byte [esp + 0x25], bl
lea ecx, [esp + 0x25]
call fcn.100313a2
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x3a
jg 0x10031f8e
or edi, 0xffffffff
mov dword [esp + 0xb4], edi
push dword [esp + 0x64]
call fcn.10050523
pop ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.100316a8
cmp dword [esi + 0x14], 0x10
jb 0x1003209b
mov ecx, dword [esi]
jmp 0x1003209d
mov ecx, esi
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x50], ecx
jb 0x100320ab
mov edx, dword [esi]
jmp 0x100320ad
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
cmp ecx, eax
je 0x100322d4
mov al, byte [ecx]
cmp al, 0x30
jl 0x100320d8
cmp al, 0x39
jg 0x100320d8
lea edx, [esp + 0x50]
lea ecx, [esp + 0x54]
call fcn.1003182b
mov ecx, dword [esp + 0x50]
inc ecx
jmp 0x1003209d
mov dword [esp + 0x10], 0x1c08901
push 0xfffffffffffffff6
pop eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], 0xfffffffb
mov dword [esp + 0x38], edi
mov dword [esp + 0x38], 4
mov dword [esp + 0x20], ebx
inc dword [esp + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x10032152
mov dword [esp + 0x38], 0x37b04800
mov dword [esp + 0x14], ebx
jmp 0x10032136
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x90], 0xdfe0091d
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 1
jl 0x10032123
mov byte [esp + 0x27], bl
lea ecx, [esp + 0x27]
call fcn.100318e5
dec dword [esp + 0x20]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jle 0x10032115
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x84]
push 2
mov dword [eax], ebx
mov dword [esp + 0x20], 0xfffffffa
mov dword [esp + 0x50], 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x3c], 0x5e0c0a10
mov dword [esp + 0x3c], 0x6658d83f
call fcn.1002a48a
xor eax, eax
lea ecx, [esp + 0x94]
inc eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x38], 0x8aff65ce
push eax
call fcn.1002a48a
lea edx, [esp + 0x84]
mov byte [esp + 0xb4], 2
lea ecx, [esp + 0x28]
call fcn.10031ab0
mov dword [esp + 0x28], ebx
jmp 0x100321e8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x94]
mov dword [eax + ecx*4], 0xaf09
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 1
jl 0x100321d2
mov dword [esp + 0x1c], ebx
jmp 0x10032299
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0xdb8e9646
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], 0xca27289f
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x3c]
call fcn.10031d7a
pop ecx
mov dword [esp + 0x50], 0x4f9a0237
pop ecx
cmp dword [esp + 0x4c], ebx
jne 0x10032242
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], 0xae9f9034
mov eax, dword [esp + 0x1c]
dec eax
je 0x10032248
cmp dword [esp + 0x34], ebx
jne 0x10032252
cmp dword [esp + 0x1c], ebx
jne 0x10032252
mov eax, ebx
jmp 0x10032255
xor eax, eax
inc eax
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
imul ecx, dword [esp + 0x1c]
push 0
imul ecx, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
mov eax, dword [esp + 0x20]
sete bl
xor edx, edx
sub ebx, eax
mov eax, dword [esp + 0x20]
cmp ebx, eax
mov eax, dword [esp + 0x64]
pop ebx
setl dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x1c]
sete cl
sub eax, ecx
mov dword [esp + 0x34], eax
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xa
je 0x100321f8
mov eax, dword [esp + 0x94]
push eax
inc dword [eax]
call fcn.10050523
cmp dword [esp + 0x88], 0
pop ecx
je 0x10031ef0
push dword [esp + 0x84]
call fcn.10050523
pop ecx
jmp 0x10031ef0
mov dword [esp + 0x10], 0xde713a47
lea ecx, [esp + 0x78]
mov dword [esp + 0x14], 0x3244d513
mov dword [esp + 0x38], edi
push 1
call fcn.1002a48a
mov dword [esp + 0x30], ebx
jmp 0x10032309
mov eax, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x2c], 0xb6069300
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 1
jl 0x100322f9
lea edx, [esp + 0x78]
lea ecx, [esp + 0x30]
call fcn.10031e7f
mov byte [esp + 0x26], bl
lea ecx, [esp + 0x26]
call fcn.10031e9e
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x10]
cmp ecx, eax
setge dl
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x10]
cmp eax, edx
setg cl
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], ebx
je 0x100323e9
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
dec eax
imul ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x100323b3
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x2c], ebx
ja 0x1003239a
cmp dword [esp + 0x20], ebx
jne 0x1003239a
mov edx, ebx
jmp 0x1003239d
xor edx, edx
inc edx
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp edx, eax
setle cl
cmp ecx, dword [esp + 0x20]
jle 0x100323b3
xor ecx, ecx
inc ecx
jmp 0x100323b5
mov ecx, ebx
xor eax, eax
cmp ecx, 0x2aba
setg al
cmp eax, dword [esp + 0x10]
je 0x100323d0
cmp dword [esp + 0x20], ebx
jne 0x100323d0
mov eax, ebx
jmp 0x100323d3
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10032420
call fcn.10031eb6
jmp 0x10032420
mov dword [esp + 0x20], 0xfff7
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
neg edx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, 0x6ff52912
setge cl
sub edx, ecx
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x78], 0
je 0x10032431
push dword [esp + 0x78]
call fcn.10050523
pop ecx
mov al, 1
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret