Function at 0x402da0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421870
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4360c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push str.cdictlist
lea eax, [ebp - 0x20]
push 0x4397c8
push eax
mov dword [ebp - 4], 0
call fcn.00407400
add esp, 8
lea ecx, [ebp - 0x38]
push 0
push 0x80
push 3
push 1
push 0x80000000
push dword [eax]
call fcn.00401ee0
mov esi, dword [ebp - 0x20]
add esi, 0xfffffff0
mov edi, eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e2f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
js 0x4030fa
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, 0xffffffff
jne 0x402e5f
call fcn.00401ec0
test eax, eax
js 0x4030fa
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
or eax, ecx
mov dword [ebp - 0x2c], ecx
je 0x4030fa
test ecx, ecx
jne 0x402e7b
cmp ebx, 0x10000
jb 0x402e87
mov ebx, 0x10000
mov dword [ebp - 0x2c], 0
push ebx
call fcn.0041314d
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x402ead
push esi
xor edi, edi
call fcn.00413962
add esp, 4
jmp 0x4030fc
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.00402840
test edi, edi
je 0x402ec9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
lea eax, [ebx + esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x436e84]
mov ecx, 0x436e84
mov edi, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebx + esi]
mov byte [ebp - 4], 3
cmp esi, eax
jae 0x4030a9
mov ecx, 0x13d6
cmp word [edi], cx
jne 0x4030a1
movzx ebx, word [edi + 2]
add ebx, edi
cmp ebx, eax
ja 0x4030a1
movzx eax, word [edi + 0x24]
movzx edx, word [edi + 0x2a]
movzx ecx, word [edi + 0x28]
add edx, eax
movzx eax, word [edi + 0x26]
add eax, edi
add eax, edx
add ecx, eax
cmp ecx, ebx
ja 0x40309e
test byte [edi + 0x20], 1
je 0x403074
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov ecx, dword [edx + 4]
sub eax, ecx
mov dword [ebp - 0x10], ecx
cmp eax, 1
jb 0x403094
lea eax, [ecx + 1]
push ecx
push eax
mov ecx, edx
call fcn.00408190
test al, al
je 0x40308a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 4]
jae 0x403080
movq xmm0, qword [edi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [edx]
lea eax, [eax + ecx*8]
movzx ecx, word [edi + 0x24]
movq qword [eax + 8], xmm0
movq xmm0, qword [edi + 0xc]
mov dword [ebp - 0x10], eax
movq qword [eax + 0x10], xmm0
movzx eax, word [edi + 0x26]
add ecx, edi
push eax
mov dword [ebp - 0x24], ecx
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402320
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
test eax, eax
jne 0x402fcd
xor ecx, ecx
jmp 0x402fe6
push dword [eax - 8]
push eax
call fcn.00413af9
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403080
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
cmp ecx, dword [eax - 8]
jg 0x403080
mov dword [eax - 0xc], ecx
mov eax, dword [edx]
xor edx, edx
mov word [eax + ecx*2], dx
movzx eax, word [edi + 0x26]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
lea eax, [ecx + eax*2]
push edx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
call fcn.00402ca0
add esp, 4
test eax, eax
jne 0x40302b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.00407120
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
movzx eax, word [edi + 0x28]
mov edi, dword [ebp - 0x10]
push eax
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00402320
mov eax, dword [edi]
test eax, eax
jne 0x403050
xor ecx, ecx
jmp 0x403062
push dword [eax - 8]
push eax
call fcn.00413af9
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403080
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x403080
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x1c]
mov edi, ebx
cmp ebx, eax
jmp 0x402f04
push 0x80070057
call fcn.00401e80
push 0x8007000e
call fcn.00401e80
push 0x80070216
call fcn.00401e80
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jae 0x4030a9
xor edi, edi
jmp 0x4030ae
mov edi, 1
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4030ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00413962
add esp, 4
jmp 0x4030fc
xor edi, edi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40310a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret