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

Disassembly:
sub esp, 0x84
mov eax, dword [0x100883c8]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x90]
push edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], 1
test edi, edi
je 0x100421df
test ebx, ebx
je 0x100421df
test eax, eax
je 0x100421df
cmp dword [edi], 1
je 0x10041c66
cmp dword [edi + 8], 1
jne 0x10041c66
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x100421c3
cmp dword [ebx], 1
je 0x100421c3
cmp dword [ebx + 8], 1
ja 0x10041c81
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jb 0x100421c3
lea eax, [ebx + 0xc]
cmp edi, ebx
je 0x100421a7
mov eax, dword [eax]
test byte [eax], 1
je 0x100421a7
lea eax, [esp + 0xc]
push esi
push eax
call fcn.1003f140
mov esi, eax
add esp, 4
test esi, esi
js 0x1004218d
lea eax, [esp + 0x10]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x30]
push ebp
push eax
xor ebp, ebp
call fcn.1003f140
mov esi, eax
add esp, 4
test esi, esi
js 0x10042140
lea eax, [esp + 0x34]
mov ebp, 1
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x24]
push eax
call fcn.1003f140
mov esi, eax
add esp, 4
test esi, esi
js 0x10042140
lea eax, [esp + 0x24]
mov ebp, 2
mov dword [esp + 0x80], eax
lea eax, [esp + 0x58]
push edi
push eax
call fcn.1003f1a0
mov esi, eax
add esp, 8
test esi, esi
js 0x10042140
lea eax, [esp + 0x58]
mov ebp, 3
mov dword [esp + 0x84], eax
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.1003f1a0
mov esi, eax
add esp, 8
test esi, esi
js 0x10042140
lea eax, [esp + 0x44]
mov dword [esp + 0x10], 4
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
shl eax, 2
push eax
push 0
push dword [esp + 0x48]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x40], 0
mov dword [eax], 0
mov eax, dword [esp + 0x34]
shl eax, 2
push eax
push 0
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], 1
mov dword [esp + 0x3c], 0
mov dword [eax], 1
lea eax, [esp + 0x5c]
mov ebp, dword [esp + 0x78]
cmp dword [esp + 0x64], ebp
cmovae ebp, dword [esp + 0x64]
inc ebp
push ebp
push eax
call fcn.100411e0
mov esi, eax
add esp, 0x20
test esi, esi
js 0x10042139
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.100411e0
mov esi, eax
add esp, 8
test esi, esi
js 0x10042133
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.100411e0
mov esi, eax
add esp, 8
test esi, esi
js 0x10042133
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.100411e0
mov esi, eax
add esp, 8
test esi, esi
js 0x10042133
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.100411e0
mov esi, eax
add esp, 8
test esi, esi
js 0x10042133
lea eax, [esp + 0x44]
push eax
call fcn.10042e80
mov esi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.10042e80
add esp, 8
mov dword [esp + 0x68], 0
cmp esi, eax
cmovae eax, esi
lea eax, [eax + eax*2]
add eax, 4
mov dword [esp + 0x70], eax
test eax, eax
jle 0x100420f2
mov eax, dword [esp + 0x54]
neg eax
mov edi, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x64]
sar edi, 0x1f
and edi, 1
push ebp
and edi, dword [eax]
lea eax, [esp + 0x5c]
xor dword [esp + 0x48], edi
xor dword [esp + 0x38], edi
push eax
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.1003e510
mov esi, eax
add esp, 0x10
test esi, esi
js 0x10042133
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.1003e510
mov esi, eax
add esp, 0x10
test esi, esi
js 0x10042133
mov ecx, edi
lea eax, [edi - 1]
and eax, dword [esp + 0x54]
neg ecx
and ecx, dword [esp + 0x6c]
or ecx, eax
mov eax, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x54], ecx
cmp eax, dword [esp + 0x34]
jne 0x10041f02
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10040440
jmp 0x10041f37
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10040650
add esp, 8
test eax, eax
lea eax, [esp + 0x14]
push eax
js 0x10041f28
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
jmp 0x10041f31
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.10042b00
mov esi, eax
add esp, 0xc
test esi, esi
js 0x10042133
lea eax, [esp + 0x14]
push 0
push eax
call fcn.100406f0
add esp, 8
neg eax
sbb eax, eax
and dword [esp + 0x14], eax
test esi, esi
js 0x10042133
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
and eax, 1
push eax
call fcn.1003e510
mov esi, eax
add esp, 0x10
test esi, esi
js 0x10042133
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x44]
jne 0x10041faa
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.10040440
jmp 0x10041fdf
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10040650
add esp, 8
test eax, eax
lea eax, [esp + 0x14]
push eax
js 0x10041fd0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x60]
jmp 0x10041fd9
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10042b00
mov esi, eax
add esp, 0xc
test esi, esi
js 0x10042133
lea eax, [esp + 0x14]
push 0
push eax
call fcn.100406f0
add esp, 8
neg eax
sbb eax, eax
and dword [esp + 0x14], eax
test esi, esi
js 0x10042133
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
and eax, 1
push eax
call fcn.1003e510
mov esi, eax
add esp, 0x10
test esi, esi
js 0x10042133
lea eax, [esp + 0x58]
push 1
push eax
call fcn.10040b60
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, dword [ebx]
jne 0x1004205b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.10040440
jmp 0x10042081
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10040650
add esp, 8
test eax, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
js 0x1004207a
push ebx
push eax
jmp 0x1004207c
push eax
push ebx
call fcn.10042b00
mov esi, eax
add esp, 0xc
test esi, esi
js 0x10042133
lea eax, [esp + 0x14]
push 0
push eax
call fcn.100406f0
add esp, 8
neg eax
sbb eax, eax
and dword [esp + 0x14], eax
test esi, esi
js 0x10042133
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
and eax, 1
push eax
call fcn.1003e510
mov esi, eax
add esp, 0x10
test esi, esi
js 0x10042133
lea eax, [esp + 0x24]
push 1
push eax
call fcn.10040b60
mov eax, dword [esp + 0x70]
add esp, 8
inc eax
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x70]
jl 0x10041e70
mov eax, dword [esp + 0x44]
xor dword [esp + 0x34], eax
cmp dword [esp + 0x4c], 1
mov dword [esp + 0x44], 0
ja 0x1004212e
mov eax, dword [esp + 0x50]
cmp dword [eax], 1
jb 0x1004212e
ja 0x1004212e
push dword [esp + 0x74]
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.1003f3e0
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov esi, eax
jmp 0x10042140
mov esi, 0xfffffffb
mov ebp, dword [esp + 0x10]
jmp 0x10042140
mov ebp, 4
nop
mov edi, dword [esp + ebp*4 + 0x78]
test edi, edi
je 0x10042187
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10042179
mov eax, dword [edi + 4]
shl eax, 2
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x10042172
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
sub ebp, 1
jns 0x10042140
pop ebp
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10065810
add esp, 0x84
ret
pop edi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10065810
add esp, 0x84
ret
pop edi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10065810
add esp, 0x84
ret
mov ecx, dword [esp + 0x88]
mov eax, 0xfffffffc
pop edi
pop ebx
xor ecx, esp
call fcn.10065810
add esp, 0x84
ret