Function at 0x42c510
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e174c
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x513200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
je 0x42c568
nop dword [eax]
mov ecx, dword [esi + 0x10]
push ecx
mov eax, dword [ecx + 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
call eax
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x42c550
mov dword [esi + 0x10], 0
cmp byte [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x42c6b2
call fcn.00425fc0
test al, al
je 0x42c5a8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push str.ReadConfig
push eax
call fcn.0043f6a0
mov ecx, eax
call fcn.0043f820
mov ecx, eax
call fcn.00440200
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b0], fcn.004a9943
mov dword [ebp - 0x4ac], fcn.004dc3df
mov dword [ebp - 0x4a8], fcn.00496f41
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0x1fff8
mov dword [ebp - method.t_heap.virtual_0], vtable.t_heap.0
mov dword [ebp - 0x49c], 0
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
push 0
push ebx
call fcn.0040e650
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x4c0]
push eax
push edi
call fcn.004421d0
mov byte [ebp - 4], 0
mov bl, al
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42c66d
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x42c66d
push ecx
call fcn.00496f41
add esp, 4
call fcn.00425e40
test bl, bl
jne 0x42c694
push 0x4ffae0
mov ecx, edi
call fcn.004058b0
lea ecx, [ebp - 0x4c0]
call fcn.00442140
xor al, al
jmp 0x42c880
lea eax, [ebp - 0x4c0]
mov ecx, esi
push eax
call fcn.0042d340
lea ecx, [ebp - 0x4c0]
call fcn.00442140
jmp 0x42c87e
push ecx
lea ecx, [ebp - 0x494]
call fcn.00430730
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
sub esp, 0x10
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x134]
push 0
push ebx
call fcn.0040e650
push 0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x494]
call fcn.004308d0
test al, al
jne 0x42c71f
xor bl, bl
jmp 0x42c757
lea eax, [ebp - 0x498]
mov dword [ebp - 0x498], 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42c74f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42c74f
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov bl, 1
mov byte [ebp - 4], 2
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42c784
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x42c784
push eax
call fcn.00496f41
add esp, 4
test bl, bl
jne 0x42c792
push 0x4ffaf4
jmp 0x42c835
lea eax, [ebp - 0x498]
mov dword [ebp - 0x498], 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42c7c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42c7c2
xor ebx, ebx
lea eax, [ebx + 1]
push eax
call fcn.004a9943
add esp, 4
mov dword [ebp - 0x498], eax
test eax, eax
jne 0x42c7df
push 0x4ffb08
jmp 0x42c835
push ebx
push eax
push edi
lea ecx, [ebp - 0x140]
call fcn.00442ec0
test al, al
jne 0x42c7f8
push 0x4ffb2c
jmp 0x42c835
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
mov byte [ebx + eax], 0
call fcn.00430cb0
push ecx
push ebx
push dword [ebp - 0x498]
mov ecx, esi
call fcn.0042c8a0
push dword [ebp - 0x498]
mov bl, al
call fcn.00496f41
add esp, 4
test bl, bl
jne 0x42c85f
push 0x4ffae0
mov ecx, edi
call fcn.004058b0
lea ecx, [ebp - 0x494]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00430810
xor al, al
jmp 0x42c880
lea ecx, [ebp - 0x494]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00430810
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 - 0x10]
xor ecx, ebp
call fcn.00489940
mov esp, ebp
pop ebp
ret 0xc