Function at 0x41d300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457b09
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push esi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [edi + 0x44], esi
jle 0x41d61a
lea eax, [edi + 0xa8]
mov dword [esp + 0x10], eax
jmp 0x41d360
mov dword [esp + 0x14], esi
cmp dword [eax], esi
jle 0x41d5ff
add eax, 0xe4
mov dword [esp + 0xc], eax
push 0x206
lea ecx, [esp + 0x7a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x80], ax
call fcn.0042c300
mov edx, dword [esp + 0x18]
add esp, 0xc
add edx, 0xffffff60
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00414c30
mov ebx, 8
add esp, 8
cmp dword [eax + 0x18], ebx
jb 0x41d3b9
mov eax, dword [eax + 4]
jmp 0x41d3bc
add eax, 4
push eax
lea ecx, [esp + 0x78]
push 0x466d28
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [esp + 0x6c], ebx
jb 0x41d3e3
mov edx, dword [esp + 0x58]
push edx
call fcn.00425770
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], esi
mov word [esp + 0x58], ax
mov dword [esp + 0x498], esi
cmp dword [esp + 0x54], esi
je 0x41d439
push 3
lea ecx, [esp + 0x28]
call fcn.0044fc00
mov eax, dword [esp + 0x54]
cmp dword [eax + 4], esi
je 0x41d429
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, esi
jne 0x41d417
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x24]
mov dword [edx + 4], esi
call fcn.0044fc40
mov eax, dword [esp + 0x54]
push eax
call fcn.00425770
add esp, 4
push 0x206
lea edx, [esp + 0x282]
xor ecx, ecx
push esi
mov dword [esp + 0x4a0], 0xffffffff
push edx
mov word [esp + 0x288], cx
call fcn.0042c300
add esp, 0xc
cmp dword [edi + 0x1c], ebx
jb 0x41d47b
mov eax, dword [edi + 8]
jmp 0x41d47e
lea eax, [edi + 8]
lea ecx, [esp + 0x74]
push ecx
push eax
lea edx, [esp + 0x284]
push 0x466e74
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d5e0
mov dword [esp + 0x34], esi
push ebx
mov dword [esp + 0x49c], 1
call fcn.00426610
add esp, 4
cmp eax, esi
je 0x41d64a
mov dword [esp + 0x34], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x34]
mov dword [edx], ecx
mov dword [esp + 0x498], 2
xor eax, eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x74]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41d510
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
lea ecx, [esp + 0x38]
call fcn.004098d0
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x34]
mov ecx, edi
mov dword [esp + 0x498], 3
call fcn.0041cd00
cmp dword [esp + 0x4c], 8
jb 0x41d55b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00425770
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], dx
mov dword [esp + 0x498], 4
cmp dword [esp + 0x34], esi
je 0x41d5b5
push 3
lea ecx, [esp + 0x20]
call fcn.0044fc00
mov eax, dword [esp + 0x34]
cmp dword [eax + 4], esi
je 0x41d5a5
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, esi
jne 0x41d593
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov dword [edx + 4], esi
call fcn.0044fc40
mov eax, dword [esp + 0x34]
push eax
call fcn.00425770
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x498], 0xffffffff
jmp 0x41d5e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add dword [esp + 0xc], 0x100
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ecx]
jl 0x41d375
mov eax, ecx
mov ecx, dword [esp + 0x18]
inc ecx
add eax, 0x6424
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
cmp ecx, dword [edi + 0x44]
jl 0x41d360
mov ecx, dword [edi + 0x3ea10]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.00420d00
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], esi
call fcn.004211a0
push 0x46ffcc
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.00432fc0
int3