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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x18]
mov ecx, edx
mov dword [esp + 0x68], eax
mov ebx, ecx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x98], eax
mov dword [esp + 0xc], ebx
push edi
mov edi, dword [ebp + 0x24]
test ecx, ecx
je 0x4001ba27
lea eax, [ecx - 1]
lea eax, [esi + eax*4]
cmp dword [eax], 0
jne 0x4001ba23
sub eax, 4
sub ebx, 1
jne 0x4001ba16
mov dword [esp + 0x10], ebx
mov edx, dword [ebp + 0xc]
mov eax, edx
mov dword [esp + 0xc], eax
test edx, edx
je 0x4001ba53
mov ecx, dword [esp + 0x70]
lea ecx, [ecx + edx*4]
add ecx, 0xfffffffc
cmp dword [ecx], 0
jne 0x4001ba4b
sub ecx, 4
sub eax, 1
jne 0x4001ba3e
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], ecx
cmp ecx, edx
ja 0x4001ba5f
mov dword [esp + 0x38], edx
and dword [esp + 0x88], 0
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x94], eax
cmp ecx, edx
jbe 0x4001baa4
mov edx, ecx
lea eax, [edx*8 + 6]
mov dword [esp + 0x8c], edi
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x94], eax
call fcn.4001f0c5
mov edx, dword [esp + 0x8c]
neg eax
mov dword [esp + 0x4c], ebx
sbb edi, edi
mov dword [esp + 0x7c], edx
neg edi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
je 0x4001bc4d
test ebx, ebx
je 0x4001bc41
test eax, eax
je 0x4001bc41
test esi, esi
je 0x4001bc35
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4001bc35
cmp dword [esp + 0x6c], 0
je 0x4001bc35
cmp dword [esp + 0x64], 0
je 0x4001bc35
cmp esi, dword [esp + 0x6c]
je 0x4001bc29
cmp ecx, dword [esp + 0x6c]
je 0x4001bc29
cmp esi, dword [esp + 0x64]
je 0x4001bc29
cmp ecx, dword [esp + 0x64]
je 0x4001bc29
mov esi, dword [esp + 0x90]
shl esi, 2
push esi
push 0
push edx
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
shl ecx, 2
lea eax, [ecx + 8]
add ebx, eax
mov dword [esp + 0x20], ebx
add ebx, eax
mov eax, ebx
mov dword [esp + 0x2c], ebx
add eax, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], ebx
mov ebx, eax
add eax, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
shl eax, 3
add ecx, eax
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x10]
add eax, 8
mov dword [esp + 0x2c], ecx
add ecx, eax
lea eax, [esi + edx]
cmp ecx, eax
je 0x4001bbd0
mov eax, dword [esp + 0xc]
mov dword [0x40027368], 4
jmp 0x4001bc4b
mov esi, dword [esp + 0x20]
lea ecx, [edx + 4]
mov eax, ebx
mov dword [esp + 0x40], ecx
shl eax, 2
add esi, 4
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x88], ecx
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x90], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x70]
shl eax, 2
push eax
push ecx
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [eax], 1
mov eax, dword [esp + 0xc]
jmp 0x4001bc4d
mov dword [0x40027368], 0xd
jmp 0x4001bc4b
mov dword [0x40027368], 0xb
jmp 0x4001bc4b
mov dword [0x40027368], 0xf
xor edi, edi
and dword [esp + 0x68], 0
mov dword [esp + 0x28], 1
jmp 0x4001c3d3
test ebx, ebx
je 0x4001c402
test eax, eax
je 0x4001c402
mov ecx, dword [esp + 0x40]
push 0x20
mov esi, dword [ecx + ebx*4 - 4]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + eax*4 - 4]
mov ecx, esi
or ecx, 1
mov dword [esp + 0x58], edx
pop eax
mov dword [esp + 0x14], eax
cmp ecx, 0x8000000
jae 0x4001bca9
shl ecx, 5
sub eax, 5
cmp ecx, 0x8000000
jb 0x4001bc97
mov dword [esp + 0x14], eax
shr ecx, 0x1c
mov eax, 0x24949c
shr eax, cl
add ecx, ecx
shr eax, cl
mov ecx, edx
and eax, 7
or ecx, 1
sub dword [esp + 0x14], eax
mov edx, 0x8000000
push 0x20
pop eax
mov dword [esp + 0x58], eax
cmp ecx, edx
jae 0x4001bce1
shl ecx, 5
sub eax, 5
cmp ecx, edx
jb 0x4001bcd3
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov edx, ebx
shl edx, 5
add eax, 0xffffffe0
add eax, edx
mov dword [esp + 0x34], edx
shr ecx, 0x1c
mov edx, 0x24949c
shr edx, cl
add ecx, ecx
shr edx, cl
mov ecx, dword [esp + 0xc]
and edx, 7
mov dword [esp + 0x48], eax
mov eax, ecx
shl eax, 5
sub eax, edx
mov edx, dword [esp + 0x58]
add edx, 0xffffffe0
add eax, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], edx
cmp edx, eax
ja 0x4001bd30
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
cmp ebx, ecx
ja 0x4001bd3c
mov dword [esp + 0x18], ecx
push ebx
push dword [esp + 0x44]
mov edx, ecx
mov ecx, dword [esp + 0x44]
call fcn.40019fc4
xor ecx, ecx
mov dword [esp + 0x98], eax
test eax, eax
mov eax, dword [ebp + 0xc]
setg cl
xor edx, edx
inc edx
mov dword [esp + 0x1c], ecx
sub edx, ecx
mov ecx, dword [esp + 0x74]
inc dword [esp + 0x68]
inc ecx
add eax, ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x1c]
shl eax, 5
cmp dword [esp + 0x68], eax
jbe 0x4001bd8c
mov dword [0x40027368], 0xe
cmp eax, dword [esp + 0x68]
sbb eax, eax
not eax
and edi, eax
je 0x4001c3cf
cmp dword [esp + 0x18], 1
jne 0x4001bfb6
mov ebx, dword [esp + 0x54]
mov eax, ebx
not eax
mov dword [esp + 0x14], edi
cmp esi, eax
jbe 0x4001be24
cmp dword [esp + 0x98], 0
jg 0x4001bdc5
sub esi, ebx
jmp 0x4001bdcb
sub ebx, esi
mov dword [esp + 0x54], ebx
push dword [esp + 0x28]
mov eax, dword [esp + ecx*4 + 0x60]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push eax
call fcn.40019ee7
mov edx, eax
mov eax, edi
mov dword [esp + 0x14], eax
test edx, edx
je 0x4001be28
mov eax, dword [esp + 0x28]
cmp eax, dword [ebp + 0xc]
jb 0x4001be08
xor eax, eax
mov dword [0x40027368], 4
mov dword [esp + 0x14], eax
jmp 0x4001be28
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + ebx*4 + 0x5c]
mov ebx, dword [esp + 0x54]
mov dword [ecx + eax*4], edx
inc eax
mov dword [esp + 0x28], eax
mov eax, edi
mov dword [esp + 0x14], eax
jmp 0x4001be28
mov eax, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
inc edi
mov dword [esp + 0x10], ecx
xor edx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
test eax, eax
je 0x4001beeb
test ebx, ebx
je 0x4001bee7
cmp esi, ebx
jb 0x4001be91
mov eax, esi
shr eax, 2
cmp eax, ebx
jb 0x4001be7f
xor edx, edx
mov eax, esi
div ebx
mov edx, dword [esp + 0x18]
mov ecx, eax
imul eax, ebx
sub esi, eax
mov eax, ecx
imul ecx, dword [esp + 0x1c]
imul eax, edx
add edi, eax
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
jmp 0x4001be91
mov eax, dword [esp + 0x1c]
sub esi, ebx
add edi, edx
add ecx, eax
cmp esi, ebx
jae 0x4001be83
mov dword [esp + 0x10], ecx
test esi, esi
je 0x4001bee7
mov eax, ebx
shr eax, 2
cmp eax, esi
jb 0x4001becc
xor edx, edx
mov eax, ebx
div esi
mov edx, dword [esp + 0x18]
mov ecx, eax
imul eax, esi
sub ebx, eax
mov eax, ecx
imul ecx, dword [esp + 0x10]
imul eax, edi
add edx, eax
add dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
jmp 0x4001be43
mov eax, dword [esp + 0x1c]
sub ebx, esi
add edx, edi
add eax, ecx
cmp ebx, esi
jae 0x4001bed0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jmp 0x4001be43
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], ecx
mov dword [eax], esi
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
xor ebx, ebx
test esi, esi
setne bl
xor eax, eax
cmp dword [esp + 0x54], eax
mov dword [esp + 0x10], ebx
setne al
mov dword [esp + 0x4c], ebx
cmp dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd8], eax
je 0x4001c3fb
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xa0]
mov edx, dword [esp + 0x30]
push ecx
push eax
push esi
push dword [esp + 0x50]
lea ecx, [esp + 0xdc]
call fcn.40046d8a
test eax, eax
je 0x4001c3fb
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
xor edi, edi
inc edi
test edx, edx
jne 0x4001bf91
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x4001bc5f
cmp esi, dword [ebp + 0xc]
jae 0x4001c3e0
mov eax, dword [esp + 0x30]
mov dword [eax + esi*4], edx
mov eax, dword [esp + 0x44]
mov dword [eax + esi*4], ecx
inc esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], esi
jmp 0x4001bc5f
mov esi, dword [esp + 0x78]
lea eax, [esi + 0x10]
cmp dword [esp + 0x48], eax
ja 0x4001c199
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add eax, dword [esp + 0x34]
cmp esi, eax
ja 0x4001c199
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov esi, ecx
push 0x1f
shl esi, 5
and dword [edx + eax*4], 0
mov eax, dword [esp + 0x44]
sub esi, dword [esp + 0x24]
mov dword [esp + 0x24], esi
and dword [eax + ebx*4], 0
mov edi, dword [eax + ecx*4 - 0xc]
mov edx, dword [eax + ecx*4 - 8]
mov eax, edx
pop ebx
sub ebx, esi
shr edi, 1
mov ecx, ebx
shr edx, 1
shr edi, cl
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x40]
or edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edi
mov dword [esp + 0xa8], edi
mov edi, dword [ecx + eax*4 - 4]
mov ecx, esi
shl edi, cl
mov ecx, ebx
shr edx, cl
mov ecx, dword [esp + 0x3c]
or edi, edx
mov dword [esp + 0xac], edi
mov esi, dword [ecx + eax*4 - 0xc]
mov edx, dword [ecx + eax*4 - 8]
mov ecx, ebx
shr esi, 1
mov eax, edx
shr esi, cl
mov ecx, dword [esp + 0x20]
shl eax, cl
mov ecx, dword [esp + 0x3c]
or esi, eax
mov eax, dword [esp + 0x18]
shr edx, 1
mov dword [esp + 0xb0], esi
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x20]
shl eax, cl
mov ecx, ebx
shr edx, cl
lea ecx, [esp + 0xcc]
or eax, edx
push eax
push esi
push edi
push dword [esp + 0x40]
mov dword [esp + 0xc4], eax
call fcn.4001c4f4
test eax, eax
je 0x4001c3fb
mov eax, dword [esp + 0xd4]
or eax, dword [esp + 0xd0]
jne 0x4001c0c2
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0xd0], 1
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ebx, eax
ja 0x4001c0d0
mov ebx, eax
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0xbc]
mov edi, dword [esp + 0x40]
mov edx, edi
push ecx
push eax
push ebx
push esi
lea ecx, [esp + 0xdc]
mov dword [esp + 0x20], ebx
call fcn.4001f4d1
test eax, eax
je 0x4001c3fb
cmp dword [esp + 0xbc], 0
jne 0x4001c3f1
cmp dword [esp + 0xc0], 0
jne 0x4001c3f1
mov eax, ebx
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x4001c154
mov edx, ebx
lea ecx, [edi - 4]
shl edx, 2
add ecx, edx
cmp dword [ecx], 0
jne 0x4001c13a
sub ecx, 4
sub ebx, 1
jne 0x4001c12d
lea ecx, [esi - 4]
mov dword [esp + 0x10], ebx
add ecx, edx
cmp dword [ecx], 0
jne 0x4001c150
sub ecx, 4
sub eax, 1
jne 0x4001c143
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x54], eax
lea ecx, [esp + 0xd0]
lea eax, [esp + 0xc8]
mov dword [esp + 0x50], ebx
push eax
push esi
push dword [esp + 0x50]
call fcn.4001f3f6
test eax, eax
je 0x4001c3fb
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
jmp 0x4001bf7e
mov esi, dword [esp + ecx*4 + 0x4c]
mov edi, dword [esp + edx*4 + 0x4c]
sub esi, edi
mov ebx, dword [esp + 0x28]
inc esi
mov dword [esp + 0x38], esi
mov ecx, ebx
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4001c1d1
mov eax, dword [esp + edx*4 + 0x5c]
lea eax, [eax + ebx*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x4001c1cd
sub eax, 4
sub ecx, 1
jne 0x4001c1c0
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + eax*4 + 0x80]
push ecx
push dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
push dword [esp + 0x34]
push 0
push edi
push dword [esp + edx*4 + 0x94]
mov edx, dword [esp + eax*4 + 0x64]
call fcn.4001c9f6
test eax, eax
je 0x4001c3fb
test esi, esi
je 0x4001c223
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x4001c21f
sub eax, 4
sub esi, 1
jne 0x4001c212
mov dword [esp + 0x38], esi
test edi, edi
je 0x4001c23e
mov eax, dword [esp + 0x24]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x4001c23e
sub eax, 4
sub edi, 1
jne 0x4001c231
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x4c], edi
mov eax, edi
shl eax, 2
push eax
push dword [esp + 0x28]
push dword [esp + 0x3c]
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp esi, eax
jbe 0x4001c27a
mov ecx, dword [esp + 0x2c]
mov edi, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + ecx*4 + 0x5c]
mov ecx, eax
jmp 0x4001c28e
mov ecx, dword [esp + 0x58]
mov edi, eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + ecx*4 + 0x5c]
mov dword [esp + 0x14], ecx
mov ecx, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], edx
cmp dword [esp + 0x2c], eax
je 0x4001c3fb
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x24]
cmp dword [esp + eax*4 + 0x5c], ebx
mov ebx, dword [esp + 0x28]
je 0x4001c3fb
test ecx, ecx
jne 0x4001c2d3
mov eax, edi
shl eax, 2
push eax
push ecx
push dword [esp + 0x2c]
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x4001c338
mov edx, dword [edx]
push ecx
mov ecx, dword [esp + 0x18]
push edi
push dword [esp + 0x2c]
call fcn.4001ae05
mov edx, dword [esp + 0x24]
mov dword [edx + edi*4], eax
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x4001c33c
mov ecx, dword [esp + 0x48]
lea esi, [edx + 4]
sub edx, ecx
lea esi, [esi + edi*4]
dec eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], eax
lea ebx, [ecx + 4]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [edx + ebx]
mov edx, dword [ebx]
push edi
push eax
call fcn.4001ac3e
sub dword [esp + 0x20], 1
lea ebx, [ebx + 4]
mov edx, dword [esp + 0x34]
mov dword [esi], eax
lea esi, [esi + 4]
jne 0x4001c30c
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
add esi, dword [esp + 0x18]
je 0x4001c355
lea eax, [esi - 1]
lea eax, [edx + eax*4]
cmp dword [eax], 0
jne 0x4001c355
sub eax, 4
sub esi, 1
jne 0x4001c348
mov eax, dword [esp + 0x1c]
and dword [esp + 0x38], 0
push ecx
mov edi, dword [esp + eax*4 + 0x60]
lea eax, [esp + 0x3c]
push eax
push edi
cmp esi, ebx
jae 0x4001c37c
push esi
push edx
mov edx, ebx
mov ecx, edi
call fcn.40019d29
mov esi, ebx
jmp 0x4001c389
mov ecx, dword [esp + 0x30]
mov edx, esi
push ebx
push edi
call fcn.40019d29
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4001c3bb
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4001c39f
mov dword [edi + esi*4], eax
inc esi
mov eax, dword [esp + 0x50]
xor edi, edi
mov ebx, dword [esp + 0x4c]
inc edi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
jmp 0x4001bc5f
mov eax, dword [esp + 0x50]
xor edi, edi
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
jmp 0x4001c3d3
mov eax, dword [esp + 0xc]
test edi, edi
jne 0x4001bc5f
jmp 0x4001c4ae
xor edi, edi
mov dword [0x40027368], 4
jmp 0x4001c4ae
mov dword [0x40027368], 4
xor edi, edi
jmp 0x4001c4ae
test edi, edi
je 0x4001c4ae
xor eax, eax
test ebx, ebx
sete al
mov esi, eax
mov dword [esp + 0x78], eax
shl esi, 2
mov eax, dword [esp + esi + 0x4c]
mov dword [esp + 0x88], eax
shl eax, 2
push eax
push dword [esp + esi + 0x84]
push dword [esp + 0x74]
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
sub eax, esi
add esp, 0xc
mov eax, dword [eax]
mov edx, eax
push ebx
mov dword [esp + 0x38], eax
call fcn.4001a038
test eax, eax
js 0x4001c46d
mov edx, dword [esp + esi + 0x5c]
mov ecx, dword [esp + 0x34]
push ebx
call fcn.4001a038
test eax, eax
jns 0x4001c479
xor edi, edi
mov dword [0x40027368], 4
test edi, edi
je 0x4001c4ae
cmp dword [esp + 0x78], 0
jne 0x4001c49c
mov eax, ebx
shl eax, 2
push eax
push dword [esp + 0x34]
push dword [esp + 0x6c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4001c4ae
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
push ebx
push dword [esp + 0x68]
call fcn.4001a1e4
cmp dword [esp + 0x94], 0
je 0x4001c4c7
mov ebx, dword [esp + 0x7c]
test ebx, ebx
je 0x4001c4c7
mov ecx, ebx
call fcn.400164fd
test edi, edi
je 0x4001c4db
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x88]
mov dword [ecx], eax
mov ecx, dword [esp + 0xdc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.400215e0
mov esp, ebp
pop ebp
ret 0x24