Function at 0x41d01d
Capabilities:
Get file size

Disassembly:
sub esp, 0x38
or dword [esp + 4], 0xffffffff
or dword [esp + 0xc], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push 0x1b66
push 0x698
mov dword [esp + 0x30], ebx
mov esi, ebx
mov dword [esp + 0x28], ebx
call fcn.00401224
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
je 0x41d2b3
push ebp
mov ebp, dword [esp + 0x4c]
lea eax, [edi + 0x658]
mov dword [esp + 0x30], eax
push dword [ebp + 8]
call fcn.00403c19
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x41d09a
push dword [ebp + 8]
push 2
call fcn.004047a7
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push edi
push dword [ebp]
call fcn.004031cc
jmp 0x41d2b2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 0x1b67
lea eax, [esi + 1]
push eax
call fcn.00401224
mov dword [esp + 0x10], eax
test eax, eax
je 0x41d2b0
push esi
mov esi, dword [esp + 0x20]
push eax
push esi
call fcn.00403bef
test eax, eax
jns 0x41d0e9
push dword [ebp + 8]
push 4
call fcn.004047a7
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
jmp 0x41d2a5
mov ebx, dword [esp + 0x10]
push esi
mov byte [eax + ebx], 0
call fcn.00403bb4
or dword [esp + 0x1c], 0xffffffff
mov esi, ebx
mov dword [esp + 0x28], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x41d2b2
cmp ebx, 0x22
je 0x41d23e
cmp ebx, 0x27
je 0x41d23e
cmp ebx, 0x2f
jne 0x41d14d
mov al, byte [esi + 1]
cmp al, bl
jne 0x41d13c
push esi
call fcn.0041cd43
mov esi, eax
jmp 0x41d24b
cmp al, 0x2a
jne 0x41d14d
push 0
lea eax, [esi + 2]
push eax
call fcn.0041ea25
jmp 0x41d135
push ebx
call fcn.0041cddc
test eax, eax
je 0x41d23b
movzx eax, byte [esi]
lea ecx, [edi + 0x618]
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], eax
test eax, eax
je 0x41d1c4
mov esi, dword [esp + 0x3c]
mov ebx, eax
mov edi, dword [esp + 0x18]
mov ebp, ecx
push ebx
call fcn.0041ced0
test eax, eax
je 0x41d1a8
inc edi
cmp esi, 1
jle 0x41d1a1
mov byte [ebp], bl
inc ebp
dec esi
movzx ebx, byte [edi]
test ebx, ebx
jne 0x41d18c
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x4c]
test esi, esi
jle 0x41d1c7
mov ecx, dword [esp + 0x20]
mov byte [ecx], 0
push dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
lea eax, [edi + 0x618]
push dword [esp + 0x34]
push eax
push ebp
call fcn.0041d960
test eax, eax
je 0x41d246
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x41d20c
push ebp
call fcn.0041d4ac
push dword [ebp + 8]
call fcn.00403bd1
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x41d28e
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
cmp edx, ecx
jbe 0x41d222
sub edx, ecx
push edx
push ecx
push eax
call fcn.00403c55
push 0
push dword [esp + 0x34]
push dword [esp + 0x1c]
call fcn.00407fa5
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
jmp 0x41d246
inc esi
jmp 0x41d246
push esi
call fcn.0041ea6c
mov esi, eax
cmp ebx, 0x20
jbe 0x41d25e
cmp dword [esp + 0x24], 0x23
jne 0x41d25a
xor eax, eax
cmp ebx, 0x23
cmove ebx, eax
mov dword [esp + 0x24], ebx
movzx ebx, byte [esi]
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x41d111
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x41d288
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jbe 0x41d288
sub esi, ecx
push esi
push ecx
push eax
call fcn.00403c55
mov esi, dword [esp + 0x10]
jmp 0x41d2b2
push dword [ebp + 8]
push 3
call fcn.004047a7
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push edi
push dword [ebp]
call fcn.004031cc
jmp 0x41d288
mov esi, eax
pop ebp
push dword [esp + 0x18]
call fcn.00403bb4
push dword [esp + 0x10]
call fcn.00403bb4
push edi
call fcn.00403dae
push esi
call fcn.00403dae
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4