Function at 0x404550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x208]
sub esp, 0x208
push 0xffffffffffffffff
push 0x41c4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x424430]
xor eax, ebp
mov dword [ebp + 0x204], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x210]
mov ebx, ecx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], eax
cmp esi, dword [ebx + 0x10]
jbe 0x4045b8
call fcn.0040fc2a
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov edi, esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0xc], esi
jbe 0x4045d2
call fcn.0040fc2a
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebx]
test eax, eax
je 0x4045dc
cmp eax, ebx
je 0x4045e4
call fcn.0040fc2a
mov eax, dword [ebp - 0x20]
cmp edi, esi
je 0x404b33
test eax, eax
jne 0x40469b
call fcn.0040fc2a
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404605
call fcn.0040fc2a
cmp byte [edi + 0x18], 0
lea eax, [edi + 0x18]
je 0x4049d7
cmp byte [0x4264f4], 0
jne 0x404660
lea ecx, [ebp]
push ecx
push 0
push 0
push 0
push eax
call fcn.00410715
lea edx, [ebp]
push 0x41f728
push edx
call fcn.0040f5a1
test eax, eax
lea eax, [ebp]
push 0x41f730
push eax
sete bl
call fcn.0040f5a1
add esp, 0x24
test eax, eax
sete al
test bl, bl
jne 0x404660
test al, al
je 0x4049d7
mov eax, dword [edi + 0x120]
push eax
mov dword [ebp - 0x24], eax
call fcn.0040f3f2
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4046a2
push 0x41f734
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x6c], 0xffffffff
call fcn.00410bbb
mov eax, dword [eax]
jmp 0x4045fb
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
cmp esi, dword [edi + 0x10]
jbe 0x4046b2
call fcn.0040fc2a
mov ecx, dword [edi]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
lea ebx, [ebx]
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x4046d0
call fcn.0040fc2a
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebx]
test ecx, ecx
je 0x4046da
cmp ecx, eax
je 0x4046e2
call fcn.0040fc2a
mov ecx, dword [ebp - 0x40]
cmp esi, edi
je 0x40486d
test ecx, ecx
jne 0x404757
call fcn.0040fc2a
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4046ff
call fcn.0040fc2a
mov edx, dword [esi + 4]
add edx, dword [ebp + 0x214]
mov edi, dword [ebp - 0x34]
push 0
push edx
push edi
call fcn.0041044d
add esp, 0xc
test byte [esi], 1
je 0x404824
mov eax, dword [esi + 0x14]
push eax
call fcn.0040f3f2
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x40475b
push 0x41f734
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0xffffffff
call fcn.00410bbb
mov eax, dword [ecx]
jmp 0x4046f5
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 0x14]
push edx
push 1
push eax
push edi
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x404794
push str._Base_Class_Descriptor_at__
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x58], 0xffffffff
call fcn.00410bbb
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x38]
push ecx
push edx
call fcn.0040c8f0
add esp, 0x10
test eax, eax
jne 0x404802
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp eax, dword [esi + 0xc]
jne 0x404802
cmp ecx, dword [esi + 0x10]
jne 0x404802
push edi
call fcn.0040fe0c
mov ebx, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x2c], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x40]
add dword [ebp - 0x28], ecx
test eax, eax
jne 0x404869
call fcn.0040fc2a
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4047f7
call fcn.0040fc2a
mov ecx, dword [ebp - 0x40]
add esi, 0x1c
jmp 0x4046c0
push 0x41f778
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0xffffffff
call fcn.00410bbb
cmp dword [esi + 0x10], 0
ja 0x404830
cmp dword [esi + 0xc], 0
jbe 0x4047d5
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x28]
push edi
push 1
push ecx
push edx
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x4047d5
push str._Base_Class_Descriptor_at__
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0xffffffff
call fcn.00410bbb
mov eax, dword [eax]
jmp 0x4047ed
mov ecx, dword [0x4264e4]
test ecx, ecx
je 0x4048ac
mov eax, dword [ebx + 0x11c]
xor edx, edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], 0x18
mov dword [ebp - 0x74], edx
call ecx
call fcn.00407210
cmp byte [0x4264f4], 0
jne 0x404a2d
mov esi, dword [ebp - 0x24]
lea ecx, [esi + esi]
push ecx
call fcn.0040f3f2
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x4048f3
push 0x41f734
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0xffffffff
call fcn.00410bbb
mov ecx, dword [ebp - 0x14]
push edi
mov edx, esi
call fcn.00404b60
mov ebx, eax
add esp, 4
test ebx, ebx
jbe 0x4049b1
mov esi, dword [ebp - 0x1c]
add esi, 0x18
mov ecx, esi
call fcn.00405ab0
mov ecx, esi
lea edx, [ebp + 0x100]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x404920
push 0x41f728
lea eax, [ebp + 0x100]
push eax
call dword [0x41d16c]
lea ecx, [ebp + 0x100]
push 0x41f798
push ecx
call fcn.0040fdc3
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x404a04
push esi
push 1
push ebx
push edi
call fcn.00410306
add esp, 0x10
test eax, eax
jne 0x404990
push 0x41f79c
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], 0xffffffff
call fcn.00410bbb
push esi
call fcn.004107d8
lea eax, [ebp + 0x100]
push eax
push 0x41f7e4
mov dword [ebp - 0x18], 0
call fcn.0040fc3a
add esp, 0xc
push edi
call fcn.0040fe0c
add esp, 4
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040fe0c
mov edi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x404af4
call fcn.0040fc2a
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4049f3
call fcn.0040fc2a
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x20]
add edi, 0x128
jmp 0x4045bf
lea ecx, [ebp + 0x100]
push ecx
push 0x41f7c0
call fcn.0040fc3a
add esp, 8
push 0x4209b8
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], 0xffffffff
call fcn.00410bbb
cmp dword [ebp - 0x24], 0
jbe 0x4049c1
lea esi, [ebx + 0x18]
mov ecx, esi
call fcn.00405ab0
mov ecx, esi
lea edx, [ebp + 0x100]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x404a45
lea eax, [ebp + 0x100]
push 0x41f7fc
push eax
call fcn.0040fdc3
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x404acb
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push esi
push 1
push ecx
push edx
call fcn.00410306
add esp, 0x10
test eax, eax
jne 0x404aa5
push 0x41f79c
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0xffffffff
call fcn.00410bbb
push esi
call fcn.004107d8
lea ecx, [ebp + 0x100]
push ecx
push 0x41f7e4
mov dword [ebp - 0x18], 0
call fcn.0040fc3a
add esp, 0xc
jmp 0x4049c1
lea edx, [ebp + 0x100]
push edx
push 0x41f7c0
call fcn.0040fc3a
add esp, 8
push 0x4209b8
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0xffffffff
call fcn.00410bbb
mov eax, dword [eax]
jmp 0x4049e9
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x204]
xor ecx, ebp
call fcn.0040f3fd
add ebp, 0x208
mov esp, ebp
pop ebp
ret