Function at 0x40e060
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449768
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x45a028]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x45a028]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x140], 1
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], edx
cmp edx, ecx
je 0x40e3eb
jmp 0x40e0f4
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x14], 8
jb 0x40e0fc
mov edx, dword [edx]
push 3
push edx
lea ecx, [esp + 0xac]
lea eax, [esp + 0xb0]
push ecx
mov dword [esp + 0xb0], eax
call fcn.00410b10
mov byte [esp + 0x140], 2
mov eax, dword [esp + 0xa4]
mov ebx, 0xf
mov ecx, eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40e150
sub ecx, esi
mov edi, ecx
lea esi, [esp + 0x88]
call fcn.00410290
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0xa8]
cmp eax, edx
je 0x40e18b
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x108]
lea ecx, [esp + 0x88]
mov dword [esp + 0x60], ebx
push ecx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.004101b0
xor eax, eax
mov byte [esp + 0x140], 5
lea edx, [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov byte [esp + 0x6c], al
push edx
or eax, 0xffffffff
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], 0xf
call fcn.004101b0
mov byte [esp + 0x140], 4
cmp dword [esp + 0x60], 0x10
jb 0x40e207
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
mov edx, 0xf
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x4c], al
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x15c], 6
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], eax
lea edx, [esp + 0x88]
mov dword [esp + 0x38], esp
mov byte [ecx], al
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.004101b0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x108]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x48]
call fcn.004126f0
add esp, 0x24
cmp dword [eax], edi
mov byte [esp + 0x140], 4
setne bl
cmp dword [esp + 0x80], 0x10
jb 0x40e284
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
test bl, bl
je 0x40e298
lea ecx, [esp + 0x88]
lea edi, [esp + 0x3c]
call fcn.00410080
mov edx, dword [esp + 0x28]
mov edi, dword [edx + 0x118]
lea eax, [esp + 0x88]
push eax
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.004101b0
xor eax, eax
mov byte [esp + 0x140], 7
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov byte [esp + 0x6c], al
push ecx
or eax, 0xffffffff
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], 0xf
call fcn.004101b0
mov byte [esp + 0x140], 4
cmp dword [esp + 0x60], 0x10
jb 0x40e318
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
mov edx, 0xf
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x4c], al
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x15c], 8
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov byte [ecx], al
lea eax, [esp + 0x88]
mov dword [esp + 0x38], esp
push eax
or eax, 0xffffffff
xor ebx, ebx
call fcn.004101b0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x118]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x3c]
call fcn.004126f0
add esp, 0x24
cmp dword [eax], edi
mov esi, 0x10
setne bl
mov byte [esp + 0x140], 4
cmp dword [esp + 0x80], esi
jb 0x40e399
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
test bl, bl
je 0x40e3ad
lea ecx, [esp + 0x88]
lea edi, [esp + 0x2c]
call fcn.00410080
mov byte [esp + 0x140], 1
cmp dword [esp + 0x9c], esi
jb 0x40e3cf
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add eax, 0x1c
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 4]
jne 0x40e0f0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e86e
mov esi, dword [sym.imp.mfc100u.dll_new]
push 0x78
call esi
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
mov byte [esp + 0x140], 9
cmp eax, ebx
je 0x40e437
push 5
push eax
call fcn.0043f880
mov dword [esp + 0x24], eax
jmp 0x40e43b
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
push 0x78
mov byte [esp + 0x144], 0xa
call esi
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0xb
cmp eax, ebx
je 0x40e46c
push 4
push eax
call fcn.0043f880
mov ebx, eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x140], 0xc
mov edi, 4
mov eax, str.urls
lea esi, [esp + 0x6c]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.00410290
mov byte [esp + 0x140], 0xd
mov eax, dword [ebx + 0x50]
cmp eax, 1
jbe 0x40e4f4
dec eax
push 0x78
mov dword [ebx + 0x50], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0xe
test eax, eax
je 0x40e4e6
push eax
mov ecx, ebx
call fcn.0043fd10
mov byte [esp + 0x140], 0xd
mov esi, eax
jmp 0x40e4f6
xor eax, eax
mov byte [esp + 0x140], 0xd
mov esi, eax
jmp 0x40e4f6
mov esi, ebx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esi + 4]
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x18], esi
call fcn.004101b0
mov byte [esi + 0x20], 1
mov byte [esp + 0x140], 0xc
cmp dword [esp + 0x80], 0x10
jb 0x40e530
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, dword [esp + 0x3c]
mov ebx, eax
cmp eax, dword [esp + 0x40]
je 0x40e6a4
xor edi, edi
mov eax, 0x44f15c
lea esi, [esp + 0x6c]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.00410290
mov byte [esp + 0x140], 0xf
cmp dword [ebx + 0x14], 0x10
jb 0x40e57a
mov edx, dword [ebx]
jmp 0x40e57c
mov edx, ebx
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00441910
mov edi, eax
mov byte [esp + 0x140], 0x10
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x50]
cmp eax, 1
jbe 0x40e5d5
dec eax
push 0x78
mov dword [esi + 0x50], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x11
test eax, eax
je 0x40e5c9
push eax
mov ecx, esi
call fcn.0043fd10
jmp 0x40e5cb
xor eax, eax
mov byte [esp + 0x140], 0x10
mov esi, eax
mov al, byte [esi]
mov dword [esp + 0x14], esi
cmp al, 5
je 0x40e5e3
cmp al, 4
jne 0x40e648
push 4
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x40e5fd
mov ecx, dword [edi]
inc dword [ecx + 0x50]
mov dword [eax], ecx
mov edi, eax
jmp 0x40e5ff
xor edi, edi
mov esi, dword [esi + 0x74]
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
jne 0x40e63d
test eax, eax
jne 0x40e622
push 0x20
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi + 8], 8
jmp 0x40e63b
mov ecx, dword [esi]
add eax, eax
lea edx, [eax*4]
push edx
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
mov byte [esp + 0x140], 0xf
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e677
dec dword [eax + 0x50]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x50], 0
jne 0x40e677
push eax
mov esi, eax
call fcn.004402a0
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov byte [esp + 0x140], 0xc
cmp dword [esp + 0x80], 0x10
jb 0x40e697
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
add ebx, 0x1c
cmp ebx, dword [esp + 0x40]
jne 0x40e540
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x50]
cmp eax, 1
jbe 0x40e6e5
dec eax
push 0x78
mov dword [edi + 0x50], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x12
test eax, eax
je 0x40e6d9
push eax
mov ecx, edi
call fcn.0043fd10
jmp 0x40e6db
xor eax, eax
mov byte [esp + 0x140], 0xc
mov edi, eax
mov al, byte [edi]
mov dword [esp + 0x1c], edi
cmp al, 5
je 0x40e6f3
cmp al, 4
jne 0x40e757
push 4
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x40e70f
mov ecx, dword [esp + 0x14]
inc dword [ecx + 0x50]
mov dword [eax], ecx
mov esi, eax
jmp 0x40e711
xor esi, esi
mov edi, dword [edi + 0x74]
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
jne 0x40e74c
test eax, eax
jne 0x40e734
push 0x20
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [edi + 8], 8
jmp 0x40e74a
mov ecx, dword [edi]
add eax, eax
mov dword [edi + 8], eax
add eax, eax
add eax, eax
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [edi], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [edx + ecx*4], esi
inc dword [edi + 4]
lea edx, [esp + 0x88]
lea ecx, [esp + 0x1c]
call fcn.0040aad0
mov byte [esp + 0x140], 0x13
sub esp, 0x1c
mov ecx, esp
lea eax, [esp + 0xa4]
mov dword [esp + 0x34], esp
push eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
xor ebx, ebx
mov byte [ecx], 0
call fcn.004101b0
mov ebx, dword [esp + 0x44]
sub esp, 0x1c
mov byte [esp + 0x178], 0x14
mov edi, esp
mov dword [esp + 0x58], esp
xor esi, esi
push esi
lea edx, [ebx + 0xcc]
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push edx
or eax, 0xffffffff
mov word [edi], cx
call fcn.00405d60
mov ecx, ebx
mov byte [esp + 0x178], 0x13
call fcn.0040d1b0
mov byte [esp + 0x140], 0xc
cmp dword [esp + 0x9c], 0x10
jb 0x40e803
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov byte [esp + 0x140], 0xa
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], esi
mov byte [esp + 0x88], 0
cmp ebx, esi
je 0x40e845
dec dword [ebx + 0x50]
cmp dword [ebx + 0x50], esi
jne 0x40e845
push ebx
call fcn.004402a0
push ebx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov byte [esp + 0x140], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40e86e
dec dword [esi + 0x50]
cmp dword [esi + 0x50], 0
jne 0x40e86e
push esi
call fcn.004402a0
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x40ecf7
mov esi, dword [sym.imp.mfc100u.dll_new]
push 0x78
call esi
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x15
test eax, eax
je 0x40e8ba
push 5
push eax
call fcn.0043f880
mov dword [esp + 0x1c], eax
jmp 0x40e8c2
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
push 0x78
mov byte [esp + 0x144], 0x16
call esi
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x17
test eax, eax
je 0x40e8f5
push 4
push eax
call fcn.0043f880
mov ebx, eax
jmp 0x40e8f7
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x140], 0x18
mov edi, 4
mov eax, str.urls
lea esi, [esp + 0x6c]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.00410290
mov byte [esp + 0x140], 0x19
mov eax, dword [ebx + 0x50]
cmp eax, 1
jbe 0x40e97f
dec eax
push 0x78
mov dword [ebx + 0x50], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x1a
test eax, eax
je 0x40e971
push eax
mov ecx, ebx
call fcn.0043fd10
mov byte [esp + 0x140], 0x19
mov esi, eax
jmp 0x40e981
xor eax, eax
mov byte [esp + 0x140], 0x19
mov esi, eax
jmp 0x40e981
mov esi, ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esi + 4]
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x18], esi
call fcn.004101b0
mov byte [esi + 0x20], 1
mov byte [esp + 0x140], 0x18
cmp dword [esp + 0x80], 0x10
jb 0x40e9bb
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, dword [esp + 0x2c]
mov ebx, eax
cmp eax, dword [esp + 0x30]
je 0x40eb38
jmp 0x40e9d0
xor edi, edi
mov eax, 0x44f15c
lea esi, [esp + 0x6c]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.00410290
mov byte [esp + 0x140], 0x1b
cmp dword [ebx + 0x14], 0x10
jb 0x40ea0a
mov edx, dword [ebx]
jmp 0x40ea0c
mov edx, ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
call fcn.00441910
mov edi, eax
mov byte [esp + 0x140], 0x1c
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x50]
cmp eax, 1
jbe 0x40ea65
dec eax
push 0x78
mov dword [esi + 0x50], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x1d
test eax, eax
je 0x40ea59
push eax
mov ecx, esi
call fcn.0043fd10
jmp 0x40ea5b
xor eax, eax
mov byte [esp + 0x140], 0x1c
mov esi, eax
mov al, byte [esi]
mov dword [esp + 0x14], esi
cmp al, 5
je 0x40ea73
cmp al, 4
jne 0x40ead8
push 4
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x40ea8d
mov ecx, dword [edi]
inc dword [ecx + 0x50]
mov dword [eax], ecx
mov edi, eax
jmp 0x40ea8f
xor edi, edi
mov esi, dword [esi + 0x74]
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
jne 0x40eacd
test eax, eax
jne 0x40eab2
push 0x20
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi + 8], 8
jmp 0x40eacb
mov ecx, dword [esi]
add eax, eax
lea edx, [eax*4]
push edx
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
mov byte [esp + 0x140], 0x1b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40eb07
dec dword [eax + 0x50]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x50], 0
jne 0x40eb07
push eax
mov esi, eax
call fcn.004402a0
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov byte [esp + 0x140], 0x18
cmp dword [esp + 0x80], 0x10
jb 0x40eb27
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
add ebx, 0x1c
cmp ebx, dword [esp + 0x30]
jne 0x40e9d0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x50]
cmp eax, 1
jbe 0x40eb79
dec eax
push 0x78
mov dword [edi + 0x50], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x140], 0x1e
test eax, eax
je 0x40eb6d
push eax
mov ecx, edi
call fcn.0043fd10
jmp 0x40eb6f
xor eax, eax
mov byte [esp + 0x140], 0x18
mov edi, eax
mov al, byte [edi]
mov dword [esp + 0x24], edi
cmp al, 5
je 0x40eb87
cmp al, 4
jne 0x40ebe7
push 4
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
test eax, eax
je 0x40eb9f
inc dword [esi + 0x50]
mov dword [eax], esi
mov ebx, eax
jmp 0x40eba1
xor ebx, ebx
mov edi, dword [edi + 0x74]
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
jne 0x40ebdc
test eax, eax
jne 0x40ebc4
push 0x20
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [edi + 8], 8
jmp 0x40ebda
mov ecx, dword [edi]
add eax, eax
mov dword [edi + 8], eax
add eax, eax
add eax, eax
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [edi], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [edx + ecx*4], ebx
inc dword [edi + 4]
lea edx, [esp + 0x88]
lea ecx, [esp + 0x24]
call fcn.0040aad0
mov byte [esp + 0x140], 0x1f
sub esp, 0x1c
mov ecx, esp
lea eax, [esp + 0xa4]
mov dword [esp + 0x34], esp
push eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
xor ebx, ebx
mov byte [ecx], 0
call fcn.004101b0
sub esp, 0x1c
mov edi, esp
mov byte [esp + 0x178], 0x20
mov dword [edi + 0x10], ebx
mov ebx, dword [esp + 0x60]
xor ecx, ecx
mov dword [esp + 0x58], esp
push ecx
lea edx, [ebx + 0xe8]
mov dword [edi + 0x14], 7
push edx
or eax, 0xffffffff
mov word [edi], cx
call fcn.00405d60
mov ecx, ebx
mov byte [esp + 0x178], 0x1f
call fcn.0040d1b0
mov byte [esp + 0x140], 0x18
cmp dword [esp + 0x9c], 0x10
mov edi, dword [sym.imp.mfc100u.dll_delete]
jb 0x40ec93
mov eax, dword [esp + 0x88]
push eax
call edi
add esp, 4
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
mov byte [esp + 0x140], 0x16
test esi, esi
je 0x40ecd2
dec dword [esi + 0x50]
cmp dword [esi + 0x50], 0
jne 0x40ecd2
push esi
call fcn.004402a0
push esi
call edi
add esp, 4
mov byte [esp + 0x140], 1
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40ecf7
dec dword [esi + 0x50]
cmp dword [esi + 0x50], 0
jne 0x40ecf7
push esi
call fcn.004402a0
push esi
call edi
add esp, 4
xor edi, edi
mov byte [esp + 0x140], 0
cmp dword [esp + 0x2c], edi
je 0x40ed54
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x40ed4a
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x40ed32
mov eax, dword [esi]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
mov byte [esi], 0
add esi, 0x1c
cmp esi, ebx
jne 0x40ed20
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esp + 0x140], 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
cmp dword [esp + 0x3c], edi
je 0x40edbb
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x40edb1
cmp dword [esi + 0x14], 0x10
jb 0x40ed99
mov ecx, dword [esi]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
mov byte [esi], 0
add esi, 0x1c
cmp esi, ebx
jne 0x40ed87
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret 4