Function at 0x405f50
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c2b77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa7c
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x68], 0x5e28e8
mov dword [esp + 0x6c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0xa90], esi
mov dword [esp + 0x30], 0x5e28d4
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x94], 0x5e28c0
mov dword [esp + 0x98], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], esi
mov ebx, dword [ebp + 0x20]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0xa98], 3
call fcn.00405990
lea edx, [esp + 0x44]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.00402120
mov edx, dword [esp + 0x54]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x10], eax
jle 0x40604c
cmp eax, 3
jne 0x40604c
mov dword [esp + 0x10], ecx
jmp 0x40608a
cmp eax, 2
jne 0x40608a
mov eax, dword [ebx + 0x44]
xor edi, edi
cmp eax, esi
jle 0x40608a
mov ecx, dword [ebx + 0x40]
mov ecx, dword [ecx + edi*4]
cmp dword [ecx + 0x1b0], 2
jne 0x406082
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call dword [edx + 0xc]
mov eax, dword [ebx + 0x44]
inc edi
cmp edi, eax
jl 0x40605a
mov eax, 1
nop
nop
nop
nop
nop
nop
nop
nop
test eax, eax
jne 0x4060a3
push 1
call dword [sym.imp.msvcrt.dll__exit]
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x6c]
lea ecx, [ebx + 0x28]
lea eax, [ebx + 0x14]
push edx
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [edi + 0x1c]
push eax
push ebx
push edx
mov edx, dword [ecx + 4]
lea eax, [ebx + 0x3c]
push eax
mov eax, dword [ecx]
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x10]
push eax
push ecx
push edx
mov edx, dword [esp + 0x80]
xor eax, eax
cmp edx, 1
mov edx, dword [edi + 8]
setg al
push eax
mov eax, dword [esp + 0x40]
xor ecx, ecx
cmp eax, 3
mov eax, dword [edi + 4]
sete cl
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, 2
sete cl
push ecx
mov ecx, dword [esp + 0x58]
call fcn.00403c40
test al, al
jne 0x406117
mov dword [edi], 0xffffffff
push fcn.00403c40
call fcn.004cfc8c
add esp, 4
test eax, eax
jne 0x406130
push 1
call dword [sym.imp.msvcrt.dll__exit]
cmp dword [edi], 0xffffffff
je 0x406cde
cmp dword [ebx + 0x30], esi
je 0x406cde
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00438380
mov eax, dword [ebx + 0x30]
mov ecx, ebx
push eax
push edi
call fcn.00401ff0
mov edi, dword [ebx + 0x44]
cmp edi, esi
mov dword [esp + 0x10], edi
jne 0x40618f
mov eax, dword [ebx + 0x68]
cmp eax, esi
je 0x406184
mov edx, dword [ebx + 0x6c]
push edx
push eax
call fcn.0040ce80
mov eax, dword [ebx + 0x68]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x6c], esi
jmp 0x4062a3
mov edx, dword [ebx + 0x68]
cmp edx, esi
jne 0x4061ba
lea eax, [edi + edi*4]
shl eax, 4
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [ebx + 0x68], eax
push edi
push eax
call fcn.0040ceb0
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x6c], edi
jmp 0x4062a3
mov ecx, dword [ebx + 0x70]
cmp edi, ecx
jg 0x4061fe
mov eax, dword [ebx + 0x6c]
cmp eax, edi
jge 0x4061e3
mov ecx, edi
sub ecx, eax
lea eax, [eax + eax*4]
shl eax, 4
add eax, edx
push ecx
push eax
call fcn.0040ceb0
mov dword [ebx + 0x6c], edi
jmp 0x4062a3
jle 0x4061f6
lea ecx, [edi + edi*4]
sub eax, edi
shl ecx, 4
add ecx, edx
push eax
push ecx
call fcn.0040ce80
mov dword [ebx + 0x6c], edi
jmp 0x4062a3
mov eax, dword [ebx + 0x74]
cmp eax, esi
jne 0x406229
mov eax, dword [ebx + 0x6c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x40621d
mov eax, 4
jmp 0x406229
cmp eax, 0x400
jle 0x406229
mov eax, 0x400
add eax, ecx
cmp edi, eax
mov dword [esp + 0x14], eax
jl 0x406237
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*4]
shl edx, 4
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ebx + 0x68]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x60], eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x6c]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.0040ceb0
mov eax, dword [ebx + 0x68]
push eax
call sub.mfc42u.dll_operatordelete
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x70], eax
xor esi, esi
mov eax, dword [ebx + 0x44]
xor edi, edi
cmp eax, esi
jle 0x4062d1
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0x68]
mov eax, dword [esp + 0x14]
add ecx, eax
call fcn.004b75c0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x44]
inc edi
add ecx, 0x50
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x4062b0
mov ecx, dword [esp + 0x18]
lea edi, [ecx + 0x2e0]
mov ecx, edi
mov dword [esp + 0x60], edi
call fcn.004dfab0
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x30]
mov ecx, edi
mov dword [ebx + 0x8c], eax
call fcn.004e3060
test al, al
jne 0x4064dd
mov dword [esp + 0xa8], 0x5e27e8
mov dword [esp + 0xac], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], esi
lea edx, [esp + 0xa8]
mov ecx, edi
push edx
mov byte [esp + 0xa94], 8
call fcn.004d7f80
mov ecx, dword [esp + 0xac]
call fcn.004b7040
fadd qword [0x5e28b8]
fimul dword [ebp + 0x14]
mov ecx, dword [esp + 0xac]
mov eax, 4
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], esi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], esi
mov edx, dword [esp + 0x14]
fsub qword [0x5e28b8]
fstp qword [ebx + 0xa0]
fld qword [esp + 0x44]
fadd st(0), st(0)
fadd qword [ecx + 0x10]
fstp qword [esp + 0x7c]
fld qword [eax + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x4063d7
fld qword [edx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x4063d7
fld qword [edx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [edx + 0x18]
jmp 0x4063da
fld qword [edx + 0x18]
fld qword [esp + 0x1c]
fadd st(0), st(0)
mov eax, dword [ebp + 0x14]
cmp eax, esi
fadd st(1)
fstp qword [esp + 0x24]
fstp st(0)
jle 0x40649b
mov ecx, eax
lea edi, [ebx + 0x78]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 8]
lea edx, [esp + 0x88]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x98], eax
call fcn.0040cb40
mov eax, dword [edi + 8]
lea ecx, [esp + 0x60]
push ecx
push eax
mov ecx, edi
call fcn.0040cf30
fld qword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fadd st(0), st(0)
mov ecx, dword [esp + 0x80]
sub esp, 8
fsubr qword [0x5e28b8]
fstp qword [esp]
push edx
mov edx, dword [esp + 0x88]
push eax
push ecx
push edx
call fcn.00405ee0
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0x14]
add esp, 0x18
push eax
push edx
call fcn.0040c9d0
mov ecx, dword [esp + 0xac]
call fcn.004b7040
fadd qword [0x5e28b8]
mov eax, dword [esp + 0x10]
dec eax
fadd qword [esp + 0x7c]
mov dword [esp + 0x10], eax
fstp qword [esp + 0x7c]
jne 0x4063fc
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xa8], 0x5e27e8
cmp ecx, esi
mov byte [esp + 0xa90], 9
je 0x4064d0
mov eax, dword [esp + 0xb0]
push eax
push ecx
call fcn.0040d220
mov ecx, dword [esp + 0xac]
push ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov byte [esp + 0xa90], 3
jmp 0x40658d
mov edx, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 0x88], eax
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x83c]
mov dword [esp + 0x8c], 1
cmp eax, esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], esi
jle 0x40658d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
push eax
call fcn.004d9510
mov edi, eax
mov ecx, edi
call fcn.004f25e0
test al, al
je 0x40657c
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x88]
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x98], eax
call fcn.0040cb40
mov eax, dword [ebx + 0x80]
lea ecx, [ebx + 0x78]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0040cf30
push edi
call fcn.00405f30
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0x14]
add esp, 4
push eax
push edx
call fcn.0040c9d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x406519
mov eax, dword [esp + 0x70]
xor ecx, ecx
cmp eax, esi
jle 0x4065b5
xor eax, eax
mov edx, dword [esp + 0x6c]
inc ecx
fld qword [edx + eax + 8]
fmul qword [ebx + 0x98]
add eax, 0x10
fstp qword [edx + eax - 8]
cmp ecx, dword [esp + 0x70]
jl 0x406599
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp eax, esi
jle 0x406613
xor eax, eax
mov edx, dword [esp + 0x34]
inc ecx
fld qword [ebx + 0x98]
fmul qword [eax + edx + 8]
add eax, 0x2c
fstp qword [eax + edx - 0x24]
mov edx, dword [esp + 0x34]
fld qword [ebx + 0x98]
fmul qword [eax + edx - 0x1c]
fstp qword [eax + edx - 0x1c]
mov edx, dword [esp + 0x34]
fld qword [ebx + 0x98]
fmul qword [eax + edx - 0x14]
fstp qword [eax + edx - 0x14]
mov edx, dword [esp + 0x34]
fld qword [ebx + 0x98]
fmul qword [eax + edx - 0xc]
fstp qword [eax + edx - 0xc]
cmp ecx, dword [esp + 0x38]
jl 0x4065c1
mov edi, dword [ebp + 8]
mov ecx, ebx
push edi
call fcn.00402020
cmp dword [ebp + 0x1c], esi
jne 0x40672c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push edx
push eax
push ecx
push edi
call fcn.00405bc0
add esp, 0x34
mov ecx, ebx
mov edi, eax
call fcn.00401fc0
mov dword [esp + 0x94], 0x5e28c0
mov eax, dword [esp + 0x98]
mov byte [esp + 0xa90], 0xa
cmp eax, esi
je 0x406699
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x50]
mov byte [esp + 0xa90], 0xb
cmp eax, esi
je 0x4066c6
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 0x5e28d4
mov eax, dword [esp + 0x34]
mov byte [esp + 0xa90], 0xc
cmp eax, esi
je 0x4066eb
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x68], 0x5e28e8
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xa90], 0xd
cmp eax, esi
je 0x406713
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xa88]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::BeginWaitCursor
mov ecx, 0x156
xor eax, eax
lea edi, [esp + 0x11c]
mov byte [esp + 0xa90], 0xe
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx]
imul edx, eax
cmp eax, esi
mov dword [esp + 0x12c], edx
jle 0x406805
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + edi*8]
lea eax, [ecx + edi*8]
mov dword [esp + edi*8 + 0x1c4], edx
mov ecx, dword [eax + 4]
mov dword [esp + edi*8 + 0x1c8], ecx
mov edx, dword [eax]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 4]
add ecx, 0x2e0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.004dfab0
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x4067dd
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x4067dd
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [esp + 0x24]
jmp 0x4067e1
fld qword [esp + 0x24]
fld qword [esp + 0x1c]
fadd st(0), st(0)
mov edx, dword [ebp + 0x10]
inc edi
fadd st(1)
cmp edi, dword [edx + 0x20]
fmul qword [ebx + 0x98]
fstp qword [esp + edi*8 + 0x13c]
fstp st(0)
jl 0x40676d
mov eax, dword [ebp + 0x10]
mov dword [esp + edi*8 + 0x144], esi
mov dword [esp + edi*8 + 0x148], esi
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + edi*8 - 4]
push edx
mov eax, dword [ecx + edi*8 - 8]
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x2e0
call fcn.004df0a0
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [edx + 0x24]
push eax
lea eax, [esp + 0x248]
push eax
call edi
mov ecx, dword [esp + 0x20]
add esp, 8
add ecx, 0x2e0
call fcn.004dfab0
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x444]
push eax
push edx
call edi
mov ecx, dword [ebx + 0x8c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x650], ecx
mov ecx, dword [ebx + 0x9c]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x130], ecx
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x64c], eax
mov eax, dword [ebx + 0x98]
mov dword [esp + 0x654], ecx
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x13c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x660], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x12c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x668], ecx
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x664], edx
mov dword [esp + 0x670], ecx
add esp, 8
xor ecx, ecx
xor edx, edx
cmp eax, esi
mov dword [esp + 0x650], eax
mov dword [esp + 0x654], ecx
jle 0x40690c
mov edi, dword [ebx + 4]
add ecx, dword [edi]
inc edx
add edi, 0xc
cmp edx, eax
mov dword [esp + 0x654], ecx
jl 0x4068fb
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x406954
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x406954
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x406957
fld qword [ecx + 0x18]
fld qword [esp + 0x1c]
fadd st(0), st(0)
mov edx, dword [esp + 0x18]
mov dword [esp + 0x108], esi
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
fadd st(1)
lea ecx, [edx + 0x2e0]
mov dword [esp + 0x104], esi
fmul qword [ebx + 0x98]
fstp qword [esp + 0xbc]
fstp st(0)
call fcn.004dfab0
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x4069d7
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x4069d7
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x4069da
fld qword [ecx + 0x18]
mov edx, dword [ebx + 0x30]
mov edi, dword [esp + 0x654]
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 8]
lea edx, [edi + edx*8]
mov edi, dword [esp + 0x660]
add edx, edi
mov edi, dword [esp + 0x668]
fld qword [esp + 0x1c]
lea edx, [edi + edx*2 + 0xc]
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x54]
lea eax, [eax + eax*2]
lea edx, [ecx + edx*2]
push 0x1001
add edx, eax
mov eax, dword [esp + 0x670]
mov ecx, eax
fadd st(0), st(0)
shl ecx, 4
add edi, ecx
mov ecx, dword [esp + 0x668]
fadd st(1)
add eax, edi
lea edi, [ecx + ecx*4]
add eax, edx
mov edx, dword [ebp + 0x1c]
fmul qword [ebx + 0x98]
lea ecx, [ecx + edi*2]
push edx
add ecx, eax
shl ecx, 2
fstp qword [esp + 0xc4]
mov dword [esp + 0x138], ecx
lea ecx, [esp + 0x67c]
fstp st(0)
call fcn.004b4ed0
lea eax, [esp + 0x11c]
push 0x558
push eax
lea ecx, [esp + 0x67c]
mov byte [esp + 0xa98], 0xf
call sub.mfc42u.dll_CFile::Write
lea ecx, [esp + 0xbc]
push 0x60
push ecx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea edx, [eax + eax*2]
shl edx, 2
push edx
push ecx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov eax, dword [ebx + 8]
xor edi, edi
cmp eax, esi
jle 0x406af9
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x18]
mov eax, dword [eax + ecx]
mov ecx, dword [edx + edi*4]
shl eax, 4
push eax
push ecx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
inc edi
add ecx, 0xc
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x406ac5
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
shl eax, 7
push eax
push ecx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x54]
lea eax, [eax + eax*4]
shl eax, 2
push eax
push ecx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
lea edx, [ecx*4]
lea ecx, [esp + 0x674]
push edx
push eax
call sub.mfc42u.dll_CFile::Write
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
shl ecx, 4
push ecx
push edx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
shl eax, 3
push eax
push ecx
lea ecx, [esp + 0x67c]
call sub.mfc42u.dll_CFile::Write
mov edi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x678]
push 1
push ecx
lea ecx, [edi + 0x2e0]
call fcn.004da7d0
lea ecx, [esp + 0x674]
call sub.mfc42u.dll_CFile::Close
mov al, byte [ebp + 0xc]
test al, al
je 0x406bf1
mov edx, dword [edi + 0xb34]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, edi
call fcn.0043ef10
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xa90], 0x10
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406be0
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, edi
call fcn.0043e120
lea ecx, [esp + 0x10]
mov byte [esp + 0xa90], 0xf
call sub.mfc42u.dll_CString::CString
mov ecx, ebx
call fcn.00401fc0
lea ecx, [esp + 0x674]
mov byte [esp + 0xa90], 0xe
call fcn.004b4f00
mov byte [esp + 0xa90], 3
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
mov dword [esp + 0x94], 0x5e28c0
mov eax, dword [esp + 0x98]
mov byte [esp + 0xa90], 0x11
cmp eax, esi
je 0x406c48
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x50]
mov byte [esp + 0xa90], 0x12
cmp eax, esi
je 0x406c75
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 0x5e28d4
mov eax, dword [esp + 0x34]
mov byte [esp + 0xa90], 0x13
cmp eax, esi
je 0x406c9a
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x68], 0x5e28e8
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xa90], 0x14
cmp eax, esi
je 0x406cc2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xa88]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, ebx
call fcn.00401fc0
mov dword [esp + 0x94], 0x5e28c0
mov eax, dword [esp + 0x98]
mov byte [esp + 0xa90], 4
cmp eax, esi
je 0x406d0c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x4c], 0x5e27fc
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x50]
mov byte [esp + 0xa90], 5
cmp eax, esi
je 0x406d39
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 0x5e28d4
mov eax, dword [esp + 0x34]
mov byte [esp + 0xa90], 6
cmp eax, esi
je 0x406d5e
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x68], 0x5e28e8
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xa90], 7
cmp eax, esi
je 0x406d86
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0xa88]
pop edi
pop esi
mov eax, 7
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c