Function at 0x481a70
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
xor edi, edi
push edi
push 0x10000000
push 3
push edi
push 7
lea eax, [ebp + 0x224]
push 0x80000000
mov ebx, ecx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je case.0x481ae6.0
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je case.0x481ae6.0
movzx eax, word [ebp + 0x12]
movzx eax, ax
cmp eax, 6
ja case.0x481ae6.1
movzx ecx, byte [eax + 0x481d34]
jmp dword [ecx*4 + 0x481d28]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
cmp edx, eax
mov ecx, dword [ebp + 0x18]
jne case.0x481ae6.0
mov eax, dword [esp + 0x20]
cmp eax, ecx
je case.0x481ae6.1
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x38
ret 4
mov cx, word [ebp + 0xc]
mov edx, dword [ebp + 0xe]
mov edi, dword [ebx + 0x19ecc]
mov word [esp + 0x10], cx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
add ebx, 0x19ec8
push ecx
mov ecx, ebx
mov word [esp + 0x1e], 0
mov dword [esp + 0x1a], edx
call fcn.00482d30
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x481b5a
cmp eax, ebx
je 0x481b5f
call fcn.004c000c
cmp dword [esi + 4], edi
jne 0x481d10
movzx eax, word [ebp + 0x12]
cmp ax, 5
jne 0x481d10
mov eax, dword [ebp + 0xe]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x54], esp
push eax
movzx eax, word [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00437d10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.00406510
lea ecx, [ebx + 0x1916a]
push esi
call fcn.0045fdf0
mov ecx, ebx
call fcn.00480e00
test al, al
je case.0x481ae6.0
lea eax, [esp + 0x24]
push eax
sub esp, 0x1c
lea eax, [ebp + 0x224]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00401430
mov ecx, ebx
call fcn.00480e00
test al, al
je case.0x481ae6.0
mov eax, 8
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x481c10
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x481bf8
test eax, eax
je 0x481c6d
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x481c5f
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x481c6d
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x481c5f
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x481c6d
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x481c5f
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x481c6d
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x481c6d
test esi, esi
mov eax, 1
jg 0x481c6f
or eax, 0xffffffff
jmp 0x481c6f
xor eax, eax
test eax, eax
je 0x481d10
movzx ecx, word [ebp + 0xc]
mov eax, dword [ebp + 0xe]
push eax
push ecx
lea ecx, [ebx + 0x1916a]
call fcn.0043fec0
mov edi, eax
test edi, edi
je 0x481cc7
mov ecx, edi
xor esi, esi
call fcn.004402a0
test eax, eax
jbe 0x481cc7
lea ebx, [esi + 2]
push esi
mov ecx, edi
call fcn.004402c0
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, edi
mov word [eax + 0x18], bx
add esi, 1
call fcn.004402a0
cmp esi, eax
jb 0x481ca1
mov ebx, dword [esp + 0x18]
xor eax, eax
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.0045a860
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [ebx + 0x19ec8]
mov word [ebp + 0x12], 3
call fcn.0047a5b0
lea edx, [esp + 0x10]
push edx
lea ecx, [ebx + 0x19ee0]
call fcn.00482db0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004bfdfd
add esp, 0x38
ret 4