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

Disassembly:
push 0xffffffffffffffff
push 0x1009fb9a
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x18], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x108], ebx
cmp dword [esp + 0x114], ebx
jne 0x100401ac
mov dword [esp + 0x108], 0xffffffff
xor al, al
jmp 0x10041375
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
mov byte [esp + 0x108], 1
push 0x15
lea esi, [eax + 0x1fc]
push str._fav_browser_link.php
call fcn.10011cd0
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x100401eb
xor eax, eax
jmp 0x10040201
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ebp, [eax - 1]
cmp ebp, ebx
jl 0x10040a69
mov eax, ebp
imul eax, eax, 0x84
mov dword [esp + 0x1c], eax
mov eax, 7
jmp 0x10040224
xor ebx, ebx
mov eax, esi
cmp ebp, ebx
je 0x1004041d
mov dword [esp + 0xdc], eax
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
mov byte [esp + 0x108], 0xe
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0x108], 0xf
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10040289
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1004028f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x114]
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
lea edx, [esp + 0xa8]
push edx
mov edx, dword [edi + 4]
mov edx, dword [esi + edx]
push edx
mov edx, dword [esp + 0x20]
push edx
call eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x100402d6
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x100402dc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
add eax, esi
add eax, 0x28
push eax
lea ebx, [esp + 0x90]
call fcn.100782e0
add esp, 4
mov byte [esp + 0x108], 0x10
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x1004030b
mov eax, dword [eax + 4]
jmp 0x1004030e
add eax, 4
cmp dword [esp + 0xc0], esi
mov ecx, dword [esp + 0xac]
jae 0x10040325
lea ecx, [esp + 0xac]
push eax
push ecx
push str._s_t_s_n
lea ecx, [esp + 0xd0]
call fcn.1006b330
add esp, 0xc
mov byte [esp + 0x108], 0xf
cmp dword [esp + 0xa4], esi
jb 0x1004035c
mov ecx, dword [esp + 0x90]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
push ebx
lea edx, [esp + 0xc8]
push edx
or eax, 0xffffffff
lea esi, [esp + 0xe8]
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
call fcn.10011ac0
mov byte [esp + 0x108], 0xe
cmp dword [esp + 0xc0], 8
jb 0x100403b2
mov eax, dword [esp + 0xac]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 7
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0x108], 1
cmp dword [esp + 0xdc], 8
jb 0x100403ef
mov ecx, dword [esp + 0xc8]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
sub dword [esp + 0x1c], 0x84
sub ebp, 1
cmp ebp, ebx
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
jge 0x10040220
jmp 0x10040a67
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1004043c
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10040442
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
cmp dword [ecx + 8], ebx
push 1
push 0x100abee4
jne 0x100407ad
mov ebp, dword [esp + 0x20]
lea esi, [ebp + 0x1c0]
mov eax, esi
call fcn.100436a0
push 4
push str.fid
mov eax, esi
call fcn.100436a0
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov byte [esp + 0x108], 2
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x100404b5
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x100404bb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x114]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
push eax
push ebp
call edx
xor eax, eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x6c]
call fcn.1006dc20
mov byte [esp + 0x108], 3
push ebx
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], 2
cmp dword [esp + 0x84], 0x10
jb 0x1004051c
mov eax, dword [esp + 0x70]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0x100abee4
mov eax, esi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.100436a0
push 6
push str.title
mov eax, esi
call fcn.100436a0
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1004056d
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x10040573
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
add eax, 0x28
push eax
lea ebx, [esp + 0x28]
call fcn.100782e0
add esp, 4
mov ecx, eax
mov ebx, 4
mov byte [esp + 0x108], bl
xor eax, eax
lea edx, [esp + 0x6c]
call fcn.1006dc20
mov byte [esp + 0x108], 5
xor ebp, ebp
push ebp
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], bl
cmp dword [esp + 0x84], 0x10
jb 0x100405d1
mov edx, dword [esp + 0x70]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebp
mov byte [esp + 0x70], 0
mov byte [esp + 0x108], 2
cmp dword [esp + 0x3c], 8
jb 0x10040604
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0x100abee4
mov eax, esi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.100436a0
push ebx
push str.url
mov eax, esi
call fcn.100436a0
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x1004064f
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x10040655
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
add eax, 0xc
push eax
lea ebx, [esp + 0x70]
call fcn.100782e0
add esp, 4
mov ecx, eax
mov byte [esp + 0x108], 6
xor eax, eax
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 7
xor ebx, ebx
push ebx
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], 6
mov ebp, 0x10
cmp dword [esp + 0x3c], ebp
jb 0x100406b1
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x108], 2
cmp dword [esp + 0x84], 8
jb 0x100406e0
mov eax, dword [esp + 0x70]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0x100abee4
mov eax, esi
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.100436a0
push 3
push 0x100ac0b4
mov eax, esi
call fcn.100436a0
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10040732
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x10040738
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x114]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x20]
push eax
call edx
xor eax, eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 8
push ebx
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], 2
cmp dword [esp + 0x3c], ebp
jb 0x10040798
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jmp 0x10040a2b
mov esi, dword [esp + 0x20]
add esi, 0x1c0
mov eax, esi
call fcn.100436a0
push 4
push str.fid
mov eax, esi
call fcn.100436a0
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov byte [esp + 0x108], 9
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1004080d
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10040813
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
mov ebp, dword [esp + 0x114]
mov edx, dword [ebp]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call edx
xor eax, eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 0xa
push ebx
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], 9
cmp dword [esp + 0x3c], 0x10
jb 0x10040878
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0x100abee4
mov eax, esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.100436a0
push 5
push str.name
mov eax, esi
call fcn.100436a0
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x100408c3
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x100408c9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
add eax, 0x28
push eax
lea ebx, [esp + 0x70]
call fcn.100782e0
add esp, 4
mov ecx, eax
mov byte [esp + 0x108], 0xb
xor eax, eax
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 0xc
xor ebx, ebx
push ebx
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], 0xb
cmp dword [esp + 0x3c], 0x10
jb 0x10040921
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x108], 9
cmp dword [esp + 0x84], 8
jb 0x10040950
mov eax, dword [esp + 0x70]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0x100abee4
mov eax, esi
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.100436a0
push 4
push str.cid
mov eax, esi
call fcn.100436a0
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x100409a2
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x100409a8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
mov edx, dword [ebp]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call edx
xor eax, eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 0xd
push ebx
push eax
or eax, 0xffffffff
call fcn.100435b0
mov byte [esp + 0x108], 9
cmp dword [esp + 0x3c], 0x10
jb 0x10040a05
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x18]
push 0x17
push str._fav_browser_folder.php
add esi, 0x1fc
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.10011cd0
mov byte [esp + 0x108], 1
cmp dword [esp + 0xa4], 8
jb 0x10040a4d
mov ecx, dword [esp + 0x90]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov word [esp + 0x90], bx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 7
xor ebx, ebx
mov ebp, dword [esp + 0x18]
push 1
lea edi, [ebp + 0x1c0]
push 0x100abee4
mov eax, edi
call fcn.100436a0
push 5
push str.path
mov eax, edi
call fcn.100436a0
xor eax, eax
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 0x11
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 1
cmp dword [esp + 0x3c], 0x10
jb 0x10040ad1
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0xe0]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.10006ea0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x108], 0x12
mov ecx, dword [ebp + 0x140]
cmp ecx, ebx
je 0x10040b21
mov edx, dword [ebp + 0x194]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
push edx
lea edx, [esp + 0x44]
push edx
call eax
mov ebp, dword [esp + 0x44]
cmp ebp, ebx
mov esi, dword [esp + 0x48]
jne 0x10040b31
xor eax, eax
jmp 0x10040b46
mov ecx, esi
sub ecx, ebp
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x100410bb
mov eax, 7
jmp 0x10040b62
mov eax, esi
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov byte [esp + 0x108], 0x13
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0x108], 0x14
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x10040bc3
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x10040bcd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x114]
imul eax, eax, 0x84
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea ebp, [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + eax]
push eax
push ebp
call edx
cmp dword [esp + 0x1c], ebx
jne 0x10040d7e
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x10040c25
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10040c2f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x44]
cmp dword [esi + 8], 1
push 1
mov eax, edi
push 0x100abee4
jne 0x10040ed4
call fcn.100436a0
push 7
push str.to_fid
mov eax, edi
call fcn.100436a0
xor eax, eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x24]
call fcn.1006dc20
mov byte [esp + 0x108], 0x15
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x14
cmp dword [esp + 0x3c], 0x10
jb 0x10040c97
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x140], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
je 0x10040d7e
push 1
push 0x100abee4
mov eax, edi
call fcn.100436a0
push 9
push str.to_index
mov eax, edi
call fcn.100436a0
mov eax, dword [ebp + 0x1bc]
sub eax, 1
lea esi, [esp + 0xc4]
call fcn.1006b310
mov ecx, eax
mov byte [esp + 0x108], 0x16
xor eax, eax
lea edx, [esp + 0x6c]
call fcn.1006dc20
mov byte [esp + 0x108], 0x17
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x16
cmp dword [esp + 0x84], 0x10
jb 0x10040d2c
mov edx, dword [esp + 0x70]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x108], 0x14
cmp dword [esp + 0xdc], 8
jb 0x10040d64
mov eax, dword [esp + 0xc8]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xdc], 7
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x10040da3
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x10040dad
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
lea edx, [esi + ecx + 0x28]
push edx
lea ebx, [esp + 0x54]
call fcn.100782e0
add esp, 4
mov byte [esp + 0x108], 0x1b
mov ebp, 8
cmp dword [eax + 0x18], ebp
jb 0x10040dd9
mov eax, dword [eax + 4]
jmp 0x10040ddc
add eax, 4
cmp dword [esp + 0xa4], ebp
mov ecx, dword [esp + 0x90]
jae 0x10040df3
lea ecx, [esp + 0x90]
push eax
push ecx
push str._s_t_s_n
lea ecx, [esp + 0xb4]
call fcn.1006b330
add esp, 0xc
mov byte [esp + 0x108], 0x14
cmp dword [esp + 0x68], ebp
jb 0x10040e24
mov eax, dword [esp + 0x54]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
push ebx
lea ecx, [esp + 0xac]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xe8]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
call fcn.10011ac0
mov byte [esp + 0x108], 0x13
cmp dword [esp + 0xc0], ebp
jb 0x10040e70
mov edx, dword [esp + 0xac]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 7
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0x108], 0x12
cmp dword [esp + 0xa4], ebp
jb 0x10040eac
mov eax, dword [esp + 0x90]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
xor ebx, ebx
sub dword [esp + 0x1c], 1
mov dword [esp + 0xa4], esi
jns 0x10040b60
jmp 0x100410b3
call fcn.100436a0
push 7
push str.to_fid
mov eax, edi
call fcn.100436a0
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x10040f08
mov edx, dword [esp + 0x48]
sub edx, ecx
mov eax, 0x3e0f83e1
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10040f12
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x114]
mov ecx, dword [ecx + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x54]
lea esi, [esp + 0x8c]
push esi
push ecx
push ebp
mov ecx, eax
call edx
xor eax, eax
mov ecx, esi
lea edx, [esp + 0x50]
call fcn.1006dc20
mov byte [esp + 0x108], 0x18
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x14
cmp dword [esp + 0x68], 0x10
jb 0x10040f6c
mov eax, dword [esp + 0x54]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x140], ebx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
je 0x10041038
push 1
push 0x100abee4
mov eax, edi
call fcn.100436a0
push 9
push str.to_index
mov eax, edi
call fcn.100436a0
mov eax, dword [ebp + 0x1bc]
sub eax, 1
lea esi, [esp + 0x24]
call fcn.1006b310
mov ecx, eax
mov byte [esp + 0x108], 0x19
xor eax, eax
lea edx, [esp + 0x50]
call fcn.1006dc20
mov byte [esp + 0x108], 0x1a
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x19
cmp dword [esp + 0x68], 0x10
jb 0x10040ffb
mov ecx, dword [esp + 0x54]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x108], 0x14
cmp dword [esp + 0x3c], 8
jb 0x10041027
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
mov byte [esp + 0x108], 0x13
mov esi, 8
cmp dword [esp + 0xc0], esi
jb 0x1004105e
mov eax, dword [esp + 0xac]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0x108], 0x12
cmp dword [esp + 0xa4], esi
jb 0x10041099
mov ecx, dword [esp + 0x90]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
cmp ebp, ebx
je 0x100410d8
sub esi, ebp
mov eax, 0x3e0f83e1
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1004129e
push 1
push 0x100abee4
mov eax, edi
call fcn.100436a0
push 7
push str.to_fid
mov eax, edi
call fcn.100436a0
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
mov byte [esp + 0x108], 0x1c
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x114]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0xa8]
push eax
mov eax, dword [ebp + 0x194]
push eax
push ebp
call edx
cmp dword [esp + 0xbc], ebx
jne 0x10041154
push 1
push 0x100abea8
lea esi, [esp + 0xb0]
call fcn.10011cd0
xor eax, eax
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x50]
call fcn.1006dc20
mov byte [esp + 0x108], 0x1d
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x1c
cmp dword [esp + 0x68], 0x10
jb 0x10041196
mov eax, dword [esp + 0x54]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x140], ebx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
je 0x10041262
push 1
push 0x100abee4
mov eax, edi
call fcn.100436a0
push 9
push str.to_index
mov eax, edi
call fcn.100436a0
mov eax, dword [ebp + 0x1bc]
sub eax, 1
lea esi, [esp + 0x24]
call fcn.1006b310
mov ecx, eax
mov byte [esp + 0x108], 0x1e
xor eax, eax
lea edx, [esp + 0x50]
call fcn.1006dc20
mov byte [esp + 0x108], 0x1f
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x1e
cmp dword [esp + 0x68], 0x10
jb 0x10041225
mov ecx, dword [esp + 0x54]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x108], 0x1c
cmp dword [esp + 0x3c], 8
jb 0x10041251
mov edx, dword [esp + 0x28]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
mov byte [esp + 0x108], 0x12
cmp dword [esp + 0xc0], 8
jb 0x10041284
mov eax, dword [esp + 0xac]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
push 1
push 0x100abee4
mov eax, edi
call fcn.100436a0
push 8
push str.to_path
mov eax, edi
call fcn.100436a0
xor eax, eax
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x50]
call fcn.1006dc20
mov byte [esp + 0x108], 0x20
push ebx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.100435b0
mov byte [esp + 0x108], 0x12
cmp dword [esp + 0x68], 0x10
jb 0x100412fc
mov ecx, dword [esp + 0x54]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x108], 1
lea ebx, [esp + 0x40]
call fcn.1003bf30
xor ebx, ebx
mov byte [esp + 0x108], bl
cmp dword [esp + 0xf8], 8
jb 0x10041340
mov edx, dword [esp + 0xe4]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], bx
mov dword [esp + 0x108], 0xffffffff
mov ecx, dword [esp + 0x114]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov al, 1
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.1009176c
add esp, 0xf8
ret