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

Disassembly:
sub esp, 0x34
movsd xmm0, qword [esp + 0x40]
mov edx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x40]
movsd qword [esp + 0x48], xmm0
mov ecx, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x4c]
mov eax, edi
or eax, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], edi
jne 0x10040d0c
xor ecx, ecx
mov eax, ebp
test edx, edx
setne cl
sub eax, esi
add ecx, 5
add ecx, edx
cmp eax, ecx
jge 0x10040cde
pop edi
pop esi
mov eax, ebp
mov edx, 0x84
pop ebp
add esp, 0x34
ret
mov byte [esi], 0x30
inc esi
test edx, edx
je 0x10040cfa
push edx
mov byte [esi], 0x2e
inc esi
push 0x30
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add esi, dword [esp + 0xc]
pop edi
mov dword [esi], 0x30302b65
lea eax, [esi + 4]
pop esi
xor edx, edx
pop ebp
add esp, 0x34
ret
push ebx
mov ebx, ecx
inc edx
and ebx, 0xfffff
shr ecx, 0x14
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], edx
test ecx, ecx
jne 0x10040d3f
mov eax, 0xfffffbce
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x50], ecx
jmp 0x10040f7e
or ebx, 0x100000
mov dword [esp + 0x48], edi
mov ebp, edi
lea eax, [ecx - 0x433]
mov dword [esp + 0x24], ebx
xor ecx, ecx
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov ebp, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffcc
jl 0x10040f2d
test eax, eax
jns 0x10040d9e
mov edx, 1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
lea eax, [ebx + 0x78]
mov dword [esp + 0x28], edx
jmp 0x10040df2
lea ecx, [eax + 0xf]
shr ecx, 4
mov eax, ecx
mov dword [esp + 0x34], ecx
imul ecx, ecx, 0x134410
shl eax, 4
add eax, 0x78
mov dword [esp + 0x38], eax
mov eax, 0x38e38e39
shr ecx, 0x12
add ecx, 0x19
mul ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
shr edx, 1
sub edx, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
js 0x10040f27
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x48]
sub eax, ecx
mov edi, dword [esp + 0x24]
add eax, 8
mov dword [esp + 0x38], eax
mov eax, ebx
mov dword [esp + 0x48], edi
shld dword [esp + 0x48], eax, 8
mov dword [esp + 0x1c], ecx
shl eax, 8
mov dword [esp + 0x30], eax
lea eax, [edx + edx*8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edi
nop dword [eax]
mov eax, dword [esp + 0x34]
push dword [esp + 0x38]
movzx eax, word [eax*2 + 0x100729c8]
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x100761c0]
push eax
push dword [esp + 0x50]
push dword [esp + 0x3c]
call fcn.100421c0
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov ebx, eax
test ecx, ecx
je 0x10040e96
mov edx, dword [esp + 0x10]
lea edi, [ecx + 9]
cmp edi, edx
ja 0x10040f16
mov ecx, ebp
sub ecx, esi
cmp ecx, 9
jl 0x100412a4
push esi
push ebx
call fcn.10037660
add esp, 8
add esi, 9
mov ecx, edi
xor edi, edi
jmp 0x10040ef2
xor edi, edi
test ebx, ebx
je 0x10040ef6
push ebx
call fcn.10041480
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 4
dec eax
add eax, edi
mov dword [esp + 0x50], eax
cmp edi, edx
ja 0x10040f21
cmp dword [esp + 0x2c], 0
jbe 0x10040edf
mov ecx, ebp
lea eax, [edi + 1]
sub ecx, esi
cmp ecx, eax
jl 0x100412a4
push esi
push ebx
push edi
call fcn.1003f9e0
add esp, 0xc
add esi, edi
jmp 0x10040eed
cmp esi, ebp
je 0x100412a4
mov al, bl
add al, 0x30
mov byte [esi], al
mov ecx, edi
xor edi, edi
inc esi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x28]
sub dword [esp + 0x24], 9
dec edx
mov dword [esp + 0x28], edx
test edx, edx
jns 0x10040e30
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
jmp 0x10040f2f
mov eax, dword [esp + 0x50]
mov edi, 9
jmp 0x10040f2f
mov ecx, dword [esp + 0x14]
jmp 0x10040f2f
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov eax, ecx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x34], edi
jge 0x100410cf
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
test edi, edi
jne 0x100410cf
mov eax, dword [esp + 0x1c]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
neg eax
mov dword [esp + 0x34], eax
movzx edx, byte [eax + 0x10072ad8]
mov dword [esp + 0x48], edx
cmp edx, 0xc8
jae 0x100410cf
mov ebx, edx
lea eax, [ebx + ebx*8]
mov dword [esp + 0x28], eax
nop dword [eax]
mov eax, dword [esp + 0x34]
movzx edx, word [eax*2 + 0x10072a48]
movzx eax, byte [eax + 0x10072ad8]
sub edx, eax
add edx, ebx
mov ebx, dword [esp + 0x34]
movzx eax, word [ebx*2 + 0x10072a4a]
cmp edx, eax
jb 0x10040fdb
xor ebx, ebx
jmp 0x10041014
mov ecx, dword [esp + 0x18]
mov eax, 8
sub eax, ebx
shl eax, 4
sub eax, dword [esp + 0x1c]
push eax
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x1007d480]
push eax
mov eax, dword [esp + 0x28]
shld eax, ecx, 8
shl ecx, 8
push eax
push ecx
call fcn.100421c0
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov ebx, eax
test ecx, ecx
je 0x1004104b
mov eax, dword [esp + 0x10]
add ecx, 9
mov dword [esp + 0x38], ecx
cmp ecx, eax
ja 0x100410c8
mov eax, ebp
sub eax, esi
cmp eax, 9
jl 0x100412a4
push esi
push ebx
call fcn.10037660
mov ecx, dword [esp + 0x40]
add esp, 8
add esi, 9
jmp 0x100410a5
test ebx, ebx
je 0x100410a9
push ebx
call fcn.10041480
mov edi, eax
add esp, 4
sub eax, dword [esp + 0x28]
sub eax, 0xa
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
cmp edi, eax
ja 0x100410d3
cmp dword [esp + 0x2c], 0
jbe 0x10041092
mov ecx, ebp
lea eax, [edi + 1]
sub ecx, esi
cmp ecx, eax
jl 0x100412a4
push esi
push ebx
push edi
call fcn.1003f9e0
add esp, 0xc
add esi, edi
jmp 0x100410a0
cmp esi, ebp
je 0x100412a4
mov al, bl
add al, 0x30
mov byte [esi], al
mov ecx, edi
xor edi, edi
inc esi
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x28]
inc dword [esp + 0x48]
add eax, 9
mov dword [esp + 0x28], eax
cmp eax, 0x708
jge 0x100410cf
mov ebx, dword [esp + 0x48]
jmp 0x10040fb0
mov edi, 9
jmp 0x100410d3
mov eax, dword [esp + 0x10]
mov ecx, eax
xor edx, edx
sub ecx, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0x48], ecx
cmovne edx, ebx
xor eax, eax
mov ebx, edx
cmp edi, ecx
jbe 0x100411bf
sub edi, ecx
je 0x100411bf
nop dword [eax + eax]
mov eax, 0xcccccccd
mov ebp, ebx
mul ebx
shr edx, 3
mov ebx, edx
lea eax, [edx + edx*4]
add eax, eax
sub ebp, eax
mov dword [esp + 0x38], ebp
sub edi, 1
jne 0x10041100
cmp ebp, 5
mov ebp, dword [esp + 0x4c]
jne 0x100411bb
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea edx, [eax + ecx]
neg edx
test edx, edx
jle 0x10041184
cmp edx, 0x3c
jge 0x1004117c
xor ecx, ecx
xor eax, eax
bts ecx, edx
cmp edx, 0x20
cmovae eax, ecx
xor ecx, eax
cmp edx, 0x40
mov edx, dword [esp + 0x20]
cmovae eax, ecx
add ecx, 0xffffffff
adc eax, 0xffffffff
and ecx, edi
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x10]
je 0x10041188
xor cl, cl
jmp 0x1004118a
mov edx, dword [esp + 0x20]
xor cl, cl
jmp 0x1004118a
mov edx, dword [esp + 0x20]
mov cl, 1
test eax, eax
jns 0x100411b1
test cl, cl
je 0x100411af
neg eax
push eax
push edx
push edi
call fcn.10042590
add esp, 0xc
test al, al
je 0x100411af
mov cl, 1
movzx edi, cl
mov ecx, dword [esp + 0x48]
inc edi
jmp 0x100411ca
xor cl, cl
movzx edi, cl
mov ecx, dword [esp + 0x48]
inc edi
jmp 0x100411ca
mov eax, dword [esp + 0x38]
mov edx, 5
cmp edx, eax
sbb edi, edi
neg edi
cmp dword [esp + 0x14], 0
je 0x10041204
mov eax, ebp
sub eax, esi
cmp eax, ecx
jl 0x100412a4
test ebx, ebx
jne 0x100411f3
push ecx
push 0x30
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add esi, dword [esp + 0x48]
jmp 0x1004123c
push esi
push ebx
push ecx
call fcn.10037520
add esp, 0xc
add esi, dword [esp + 0x48]
jmp 0x1004123c
cmp dword [esp + 0x2c], 0
jbe 0x10041232
mov edx, dword [esp + 0x48]
mov ecx, ebp
sub ecx, esi
lea eax, [edx + 1]
cmp ecx, eax
jl 0x100412a4
push esi
push ebx
push edx
call fcn.1003f9e0
mov eax, dword [esp + 0x54]
add esp, 0xc
inc eax
add esi, eax
jmp 0x1004123c
cmp esi, ebp
je 0x100412a4
add bl, 0x30
mov byte [esi], bl
inc esi
test edi, edi
je 0x10041286
mov edx, dword [esp + 0x40]
mov eax, esi
cmp esi, edx
je 0x1004126a
nop word [eax + eax]
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x2e
je 0x10041266
cmp cl, 0x39
jne 0x10041278
mov byte [eax], 0x30
mov edi, 1
cmp eax, edx
jne 0x10041250
mov byte [eax], 0x31
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
jmp 0x1004128a
cmp edi, 1
je 0x10041282
test cl, 1
je 0x10041286
inc cl
mov byte [eax], cl
mov eax, dword [esp + 0x50]
cdq
mov ecx, ebp
mov ebx, eax
xor ebx, edx
sub ebx, edx
xor edx, edx
cmp ebx, 0x64
setge dl
sub ecx, esi
add edx, 4
cmp ecx, edx
jge 0x100412b3
pop ebx
pop edi
pop esi
mov eax, ebp
mov edx, 0x84
pop ebp
add esp, 0x34
ret
cmp dword [esp + 0x50], 0
mov byte [esi], 0x65
setl al
lea eax, [eax*2 + 0x2b]
mov byte [esi + 1], al
cmp ebx, 0x64
jl 0x1004130a
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ax, word [ecx*2 + 0x10072900]
mov word [esi + 2], ax
mov al, cl
shl cl, 2
add al, cl
add al, al
sub bl, al
add bl, 0x30
mov byte [esi + 4], bl
add esi, 5
pop ebx
pop edi
mov eax, esi
xor edx, edx
pop esi
pop ebp
add esp, 0x34
ret
mov ax, word [ebx*2 + 0x10072900]
mov word [esi + 2], ax
add esi, 4
pop ebx
pop edi
mov eax, esi
xor edx, edx
pop esi
pop ebp
add esp, 0x34
ret