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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], esi
push edi
mov edi, edx
test esi, esi
jne 0x40f4d5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041005d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [ebp - 0x4c4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x4bc], eax
test edi, edi
je 0x40f695
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40f4f3
sub ebx, ecx
je 0x40f695
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40f51a
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 0x5c], 0
xor ecx, ecx
mov eax, ebx
cmp dword [esi + 0x14], 1
push 1
jne 0x40f66e
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov edx, eax
mov dword [ebp - 0x28], edx
test eax, eax
je 0x40f68e
xor ecx, ecx
test ebx, ebx
je 0x40f565
mov dl, byte [edi]
lea edi, [edi + 1]
test dl, dl
je 0x40f562
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, ebx
jb 0x40f551
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
mov dword [esi + 0x5c], edx
push eax
push 0
push ecx
mov ecx, esi
call fcn.0040e2d0
add esp, 0xc
test eax, eax
jne 0x40f58c
mov dword [esi + 0x58], 0xffffffff
lea edi, [eax - 3]
jmp 0x40fad9
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x58], edx
test edx, edx
jns 0x40f5a0
mov edi, 0xfffffffd
jmp 0x40fad9
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x40f5b6
cmp edx, dword [esi + 0x10]
jae 0x40f5b6
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
jmp 0x40f5b8
xor eax, eax
push 0
lea ecx, [ebp - 0x4b4]
push ecx
push eax
mov ecx, esi
call fcn.0040dc10
add esp, 0xc
test eax, eax
jne 0x40f5d8
lea edi, [eax - 3]
jmp 0x40fad9
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 0x490]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x48c]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x49c]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x4ac]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x47c]
mov dword [esi + 0x6c], ecx
mov ecx, dword [ebp - 0x488]
mov dword [esi + 0xa0], eax
mov ax, word [ebp - 0x49e]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp - 0x4a8]
mov dword [esi + 0x7c], ecx
mov ecx, dword [ebp - 0x478]
mov word [esi + 0xa8], ax
mov eax, dword [ebp - 0x480]
mov dword [esi + 0xa4], ecx
mov ecx, dword [ebp - 0x60]
mov dword [esi + 0x4e008], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x4e010], eax
mov dword [esi + 0x4e014], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041005d
mov esp, ebp
pop ebp
ret
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, eax
mov dword [ebp - 0x4c0], eax
add esp, 8
test edx, edx
jne 0x40f6ab
mov dword [esi + 0x5c], 0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041005d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x4b8], 0
test ebx, ebx
je 0x40f6ef
mov esi, 0x2f
nop
mov cl, byte [edi]
lea edi, [edi + 1]
test cl, cl
je 0x40f6e6
cmp cl, 0x5c
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
mov eax, dword [ebp - 0x4b8]
inc eax
mov dword [ebp - 0x4b8], eax
cmp eax, ebx
jb 0x40f6c0
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c0]
mov edx, dword [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword [esi + 4]
and edx, 0xf
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x58], eax
mov eax, dword [esi]
mov dword [esi + 0x78], eax
mov dword [esi + 0xa0], eax
mov eax, edx
mov dword [esi + 0x68], 0
neg eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x60], 0
sbb eax, eax
mov dword [esi + 0x64], 0
and eax, 8
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], ecx
mov dword [esi + 0xa4], ecx
movups xmmword [esi + 0x80], xmm0
mov dword [ebp - 0x4c0], edx
movq qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
mov word [esi + 0xa8], ax
mov dword [esi + 0x4e008], 0
mov edi, dword [esi + 0x20]
mov eax, edi
or eax, dword [esi + 0x24]
jne 0x40f78b
xor edi, edi
jmp 0x40f796
lea ecx, [edi - 1]
mov eax, ecx
and eax, dword [esi]
sub edi, eax
and edi, ecx
cmp dword [esi + 0x48], 0
je 0x40fad4
cmp dword [esi + 0x14], 2
jne 0x40fad4
test dword [esi + 0x50], 0x400
je 0x40f7bd
mov edi, 0xfffffffb
jmp 0x40fad9
push dword [esi + 0x7c]
mov edx, edi
mov ecx, esi
push dword [esi + 0x78]
call fcn.0040eef0
add esp, 8
test eax, eax
jne 0x40f7db
lea edi, [eax - 7]
jmp 0x40fad9
mov ecx, edi
mov eax, 0
add ecx, dword [ebp - 0x4c4]
push 0
adc eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esi + 0x4e010], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [esi + 0x4e014], edx
mov dword [ebp - 0x28], edx
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
add esp, 8
test eax, eax
je 0x40f83f
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4b8], eax
jmp 0x40f877
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
shl ecx, 6
add ecx, dword [ebp - 0x54]
sar eax, 1
shl ecx, 5
add ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x48]
add eax, 0x301
shl ecx, 4
add eax, ecx
shl eax, 5
add eax, dword [ebp - 0x4c]
movzx eax, ax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x4bc], 0
ja 0x40f890
cmp dword [ebp - 0x4c4], 0xffffffff
jae 0x40f890
xor eax, eax
lea edx, [ebp - 0x20]
jmp 0x40f8d2
lea edx, [ebp - 0x34]
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1e], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x20], cl
shr ecx, 0x18
mov byte [ebp - 0x1c], dl
shr edx, 0x18
mov byte [ebp - 0x1a], al
mov eax, 8
mov byte [ebp - 0x19], dl
lea edx, [ebp - 0x18]
mov byte [ebp - 0x1d], cl
movzx ecx, word [esi + 0xa8]
xorps xmm0, xmm0
movups xmmword [esi + 0x80], xmm0
mov byte [ebp - 0x22], al
movq qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
shr eax, 8
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x24]
sub edx, eax
mov dword [esi + 0x80], 0x4034b50
lea eax, [esi + 0x80]
mov byte [esi + 0x88], cl
mov ax, cx
mov word [esi + 0x85], 0x800
neg ax
mov byte [esi + 0x87], 8
mov dword [esi + 0x8e], 0
sbb al, al
mov dword [ebp - 0x4bc], edx
and al, 0x14
shr ecx, 8
mov byte [esi + 0x84], al
lea eax, [esi + 0x80]
mov byte [eax + 9], cl
mov ecx, dword [ebp - 0x4b8]
mov byte [eax + 0xa], cl
shr ecx, 8
mov byte [eax + 0xb], cl
mov ecx, dword [ebp - 0x28]
mov byte [eax + 0xc], cl
shr ecx, 8
mov byte [eax + 0xd], cl
mov ecx, edi
mov dword [eax + 0x12], 0
mov dword [eax + 0x16], 0
mov byte [eax + 0x1a], bl
mov eax, ebx
shr eax, 8
mov byte [esi + 0x9b], al
mov eax, edx
mov byte [esi + 0x9c], dl
lea edx, [esi + 0x80]
shr eax, 8
mov byte [esi + 0x9d], al
add ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x7c]
push 0x1e
adc eax, 0
mov dword [esi + 0xa0], ecx
push edx
push eax
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0x3c]
push ecx
push dword [esi + 0x44]
mov word [ebp - 0x24], 1
call eax
add esp, 0x14
cmp eax, 0x1e
je 0x40f9e8
mov edi, 0xfffffff9
jmp 0x40fad9
push ebx
push dword [esi + 0x5c]
lea eax, [edi + 0x1e]
add dword [esi + 0x78], eax
adc dword [esi + 0x7c], 0
push dword [esi + 0x7c]
mov eax, dword [esi + 0x3c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call eax
add esp, 0x14
cmp eax, ebx
je 0x40fa15
mov edi, 0xfffffff8
jmp 0x40fad9
add dword [esi + 0x78], ebx
lea eax, [ebp - 0x24]
mov edi, dword [ebp - 0x4bc]
adc dword [esi + 0x7c], 0
push edi
push eax
push dword [esi + 0x7c]
mov eax, dword [esi + 0x3c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call eax
add esp, 0x14
cmp eax, edi
je 0x40fa46
mov edi, 0xfffffff8
jmp 0x40fad9
add edi, dword [esi + 0x78]
mov eax, 0
mov ecx, dword [ebp - 0x4c0]
adc eax, dword [esi + 0x7c]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], eax
test ecx, ecx
je 0x40f65b
mov dword [esi + 0xb8], edi
lea edx, [esi + 0xb0]
mov edi, 0xa
mov dword [esi + 0xbc], eax
cmp ecx, edi
mov dword [edx], esi
mov eax, ecx
mov dword [esi + 0xc0], 0
cmova eax, edi
mov dword [esi + 0xc4], 0
mov edi, 3
cmp edi, ecx
sbb ecx, ecx
and ecx, 0xffffc000
add ecx, 0x4000
or ecx, dword [eax*4 + 0x411330]
push ecx
push edx
lea ecx, [esi + 0xc8]
call fcn.0040d8b0
add esp, 8
test eax, eax
je 0x40f65b
mov edi, 0xfffffff7
jmp 0x40fad9
mov edi, 0xfffffffc
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40faf1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 0x5c], 0
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041005d
mov esp, ebp
pop ebp
ret