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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51241c
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov ebx, dword [ebp + 8]
push 0x80
push 3
push 1
mov dword [esp + 0x14c], edi
mov eax, dword [ebx + 8]
push 0xc0000000
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0042da48
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4a3a1c
push edi
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a33e4
call fcn.0041390a
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4a33e8
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], edi
jl 0x4a3a1c
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x4a3419
call fcn.0041390a
cmp eax, edi
jge 0x4a3419
mov dword [esp + 0x14], eax
jmp 0x4a342d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], edi
cmp dword [esp + 0x14], edi
jl 0x4a3a1c
push 0xc
lea esi, [ebx + 0xc]
push esi
lea eax, [esp + 0x20]
push eax
call fcn.0043d45c
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4a3a1c
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
mov si, word [ebx + 0x14]
mov dword [esp + 0x58], eax
mov ax, word [ebx + 0x16]
rol si, 8
rol ax, 8
mov word [esp + 0x62], ax
mov eax, dword [ebx]
mov ecx, ebx
mov word [esp + 0x60], si
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], edi
call dword [eax + 8]
test al, al
je 0x4a3a14
cmp si, di
je 0x4a3a14
cmp word [esp + 0x62], di
je 0x4a3a14
cmp word [esp + 0x62], 4
ja 0x4a3a14
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov eax, edi
cmp eax, dword [esp + 0x78]
mov byte [esp + 0x140], 2
mov dword [esp + 0x38], edi
ja 0x4a39da
jb 0x4a34f5
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x74]
jae 0x4a39da
cmp dword [esp + 0x14], edi
jl 0x4a39da
push 0x24
call fcn.004484be
pop ecx
mov dword [esp + 0x3c], eax
cmp eax, edi
mov byte [esp + 0x140], 3
je 0x4a3526
push edi
push eax
lea edx, [esp + 0x60]
call fcn.004a2d4a
mov esi, eax
jmp 0x4a3528
xor esi, esi
mov byte [esp + 0x140], 2
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], esi
call fcn.0043cfd7
push esi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00427699
add esp, 0xc
mov byte [esp + 0x140], 4
movzx ecx, word [esp + 0x60]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043d45c
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4a39a7
mov edx, dword [esp + 0x24]
mov eax, edx
call fcn.004a25a2
add dword [esp + 0x1c], eax
mov eax, dword [edx + 0x1c]
adc dword [esp + 0x20], edi
test byte [eax], 0x80
je 0x4a359e
push edi
mov eax, edx
call fcn.0043c24c
jmp 0x4a3614
movzx eax, word [edx + 0x18]
movzx ecx, word [esp + 0x62]
add eax, dword [edx + 0x1c]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043d45c
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4a3614
mov ecx, dword [esp + 0x24]
call fcn.0043cf35
push eax
mov eax, dword [esp + 0x28]
call fcn.0043c24c
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4a35fc
mov ecx, dword [esi + 8]
sub ecx, eax
je 0x4a35fc
push ecx
call fcn.0043bf98
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043d45c
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4a3607
xor esi, esi
jmp 0x4a360c
mov esi, dword [esi + 8]
sub esi, eax
add dword [esp + 0x1c], esi
adc dword [esp + 0x20], edi
lea eax, [esp + 0x24]
lea edi, [ebx + 0x18]
push eax
mov dword [esp + 0x40], edi
call fcn.0042e118
cmp dword [esp + 0x14], 0
jl 0x4a39a5
mov eax, dword [esp + 0x24]
call fcn.0043cf60
movzx eax, al
dec eax
je 0x4a3813
dec eax
dec eax
je 0x4a3775
dec eax
jne 0x4a39a5
cmp dword [esp + 0x44], eax
je 0x4a3748
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
sar eax, 3
je 0x4a3748
lea esi, [eax - 1]
cmp esi, eax
jb 0x4a3679
call fcn.00447be0
mov eax, dword [esp + 0x44]
lea eax, [eax + esi*8]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00411df3
mov byte [esp + 0x140], 9
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4a370f
mov eax, dword [esp + 0x3c]
call fcn.0043bfb1
dec eax
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x8c]
call fcn.004103c0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0xa8], esi
call fcn.00411df3
lea eax, [esp + 0x88]
push eax
add ebx, 0x3c
lea edi, [esp + 0xb0]
mov byte [esp + 0x144], 0xa
call fcn.0043bfc4
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x144], 9
call fcn.0043bd44
mov ebx, dword [ebp + 8]
cmp dword [esp + 0x44], 0
je 0x4a3733
mov eax, dword [esp + 0x48]
mov ecx, eax
sub ecx, dword [esp + 0x44]
sar ecx, 3
je 0x4a3733
push eax
add eax, 0xfffffff8
call fcn.00417517
sub dword [esp + 0x48], 8
mov byte [esp + 0x140], 4
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4a3748
call fcn.00411e0e
and dword [esp + 0x38], 0
lea eax, [esp + 0x64]
call fcn.0043c19b
test eax, eax
je 0x4a39a5
mov eax, dword [esp + 0x6c]
push eax
add eax, 0xffffffe4
call fcn.0043c557
sub dword [esp + 0x6c], 0x1c
jmp 0x4a39a5
cmp dword [esp + 0x38], 0
jne 0x4a39a5
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x4c], esp
push eax
lea ecx, [esp + 0x78]
call fcn.0043c103
lea eax, [esp + 0x10c]
push eax
call fcn.004a2da2
add esp, 0x14
mov byte [esp + 0x140], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x4a37b6
mov eax, dword [eax + 4]
jmp 0x4a37b9
add eax, 4
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0042568c
push 0
push 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x148], 0xd
call fcn.00411256
lea eax, [esp + 0x80]
push eax
add ebx, 0x28
push ebx
lea ebx, [esp + 0xc0]
call fcn.0041fee1
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov dword [esp + 0x38], 1
call fcn.00410d34
jmp 0x4a39a2
push 0x40
call fcn.004484be
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
je 0x4a3836
mov esi, ebx
call fcn.0043d50d
lea esi, [ebx + 0x1c]
call fcn.0043d50d
mov esi, ebx
jmp 0x4a3838
xor esi, esi
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x54], esi
call fcn.0043d03a
push esi
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00427699
add esp, 0xc
lea eax, [esp + 0x64]
mov byte [esp + 0x140], 5
call fcn.0043c19b
test eax, eax
je 0x4a38b9
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x48], esp
push eax
lea ecx, [esp + 0x78]
call fcn.0043c103
lea eax, [esp + 0x128]
push eax
call fcn.004a2da2
add esp, 0x14
push 0xffffffffffffffff
push edi
mov byte [esp + 0x148], 6
mov ecx, dword [esp + 0x58]
push eax
call fcn.004103e6
push edi
push 1
lea ecx, [esp + 0x120]
mov byte [esp + 0x148], 5
call fcn.00411256
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
cmp ecx, edi
mov dword [esp + 0x38], edi
jne 0x4a38cc
xor eax, eax
jmp 0x4a38d1
mov eax, dword [esi + 8]
sub eax, ecx
push eax
call fcn.0043bf98
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0xcc]
push ecx
mov ebx, eax
call fcn.004a2e59
add esp, 0xc
push eax
lea esi, [esp + 0x68]
mov byte [esp + 0x144], 7
call fcn.0043c1d0
xor esi, esi
push esi
push 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0x148], 5
call fcn.00411256
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x94], esp
push eax
lea ecx, [esp + 0x78]
call fcn.0043c103
lea eax, [esp + 0xf0]
push eax
call fcn.004a2da2
add esp, 0x14
push 0xffffffffffffffff
mov byte [esp + 0x144], 8
mov ecx, dword [esp + 0x54]
push esi
add ecx, 0x1c
push eax
call fcn.004103e6
push esi
push 1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x148], 5
call fcn.00411256
mov eax, dword [esp + 0x3c]
call fcn.0043bfb1
mov ecx, dword [esp + 0x50]
dec eax
mov dword [ecx + 0x38], eax
lea eax, [esp + 0x50]
push eax
lea edi, [esp + 0x44]
call fcn.0042e118
mov byte [esp + 0x140], 4
mov ecx, dword [esp + 0x54]
cmp ecx, esi
je 0x4a39a2
call fcn.00411e0e
mov ebx, dword [ebp + 8]
xor edi, edi
mov byte [esp + 0x140], 2
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4a39bc
call fcn.00411e0e
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x20], eax
jb 0x4a34f5
ja 0x4a39da
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x1c], eax
jb 0x4a34f5
mov byte [esp + 0x140], 1
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x4a39fd
push dword [esp + 0x48]
call fcn.00417517
push dword [esp + 0x44]
call fcn.0044773c
pop ecx
lea esi, [esp + 0x64]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.0043c574
jmp 0x4a3a1c
mov dword [esp + 0x14], 0x80004005
cmp dword [esp + 0x18], edi
je 0x4a3a2c
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4