Function at 0x40fa31
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push esi
mov dword [ebp - 0x1c], 0x6e
mov dword [ebp - 0x44], 0xcf
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x40], 0x37
mov dword [ebp - 0x34], 0xae
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
push str.cOLTMFRpFwg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
cmp dword [0x41a0fc], 0x739a
jne 0x40f989
mov dword [0x41a0ec], 0x60
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40f9a5
mov dword [ebp - 0x30], 0x1055
push str.KEYsIDnrRmX
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], 0x67
jmp 0x40f9c9
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0xc6
jae 0x40ff34
mov dword [ebp - 0x108], 0xcd
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xe6
ja case.0x40fa0b.1
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x41045f]
jmp dword [edx*4 + 0x410443]
mov dword [ebp - 0x130], 0x85
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x134], eax
jmp 0x40faf2
mov ecx, dword [0x41a0d0]
imul ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
jmp 0x40faf2
mov dword [ebp - 0xfc], 0x78
mov dword [ebp - 0x138], 0x97
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov edx, dword [ebp - 0xfc]
and edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
jmp 0x40faf2
mov dword [ebp - 0x13c], 0x5b
mov eax, dword [0x41a0f4]
xor edx, edx
div dword [0x41a0fc]
mov dword [ebp - 0x14], eax
jmp 0x40faf2
mov eax, dword [0x41a0d4]
xor edx, edx
div dword [0x41a104]
mov dword [0x41a0e8], eax
jmp 0x40faf2
mov dword [ebp - 0x140], 0xfb
mov dword [ebp - 0x144], 0x5d
mov eax, dword [ebp - 0x40]
xor edx, edx
div dword [0x41a0bc]
mov dword [0x41a108], eax
jmp 0x40faf2
mov dword [ebp - 0x148], 0x42
mov dword [ebp - 0x14c], 0x13
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [ebp - 0x34], eax
mov eax, dword [0x41a0fc]
sub eax, dword [0x41a108]
mov ecx, dword [ebp - 0x50]
sub ecx, dword [0x41a0c4]
cmp eax, ecx
jbe 0x40fb13
mov dword [ebp - 0x54], 1
jmp 0x40fb1a
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0
je 0x40fb5a
mov edx, dword [0x41a0c0]
sub edx, dword [0x41a0f4]
je 0x40fb44
mov eax, dword [0x41a108]
and eax, dword [0x41a0d8]
je 0x40fb44
mov dword [ebp - 0x58], 1
jmp 0x40fb4b
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
je 0x40fb5a
mov dword [ebp - 0x5c], 1
jmp 0x40fb61
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x40fb96
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
and edx, dword [ebp - 0x20]
cmp ecx, edx
jbe 0x40fb80
mov dword [ebp - 0x60], 1
jmp 0x40fb87
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
je 0x40fb96
mov dword [ebp - 0x64], 1
jmp 0x40fb9d
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
je 0x40fbd9
mov eax, dword [ebp - 0x30]
imul eax, dword [0x41a0d4]
mov ecx, dword [ebp - 0xc0]
add ecx, dword [ebp + 8]
cmp eax, ecx
jbe 0x40fbc3
mov dword [ebp - 0x68], 1
jmp 0x40fbca
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0
je 0x40fbd9
mov dword [ebp - 0x6c], 1
jmp 0x40fbe0
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
je 0x40fc16
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x18]
test edx, edx
jne 0x40fc05
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 4]
test eax, eax
jne 0x40fc05
mov dword [ebp - 0x70], 0
jmp 0x40fc0c
mov dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0
jne 0x40fd37
mov dword [ebp - 0x150], 0x4f
mov dword [ebp - 0x10], 0xaa
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x41a0dc]
or edx, dword [0x41a0c4]
mov eax, dword [str.a6_b_]
imul eax, dword [ebp - 0x24]
cmp edx, eax
jne 0x40fc52
mov dword [ebp - 0x74], 1
jmp 0x40fc59
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 0
je 0x40fc97
mov ecx, dword [0x41a0d8]
xor ecx, dword [ebp - 0x108]
je 0x40fc81
mov edx, dword [0x41a0f8]
and edx, dword [ebp - 0x28]
je 0x40fc81
mov dword [ebp - 0x78], 1
jmp 0x40fc88
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0
je 0x40fc97
mov dword [ebp - 0x7c], 1
jmp 0x40fc9e
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0
je 0x40fce5
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x10]
je 0x40fcbd
mov ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 0x10]
je 0x40fcbd
mov dword [ebp - 0x80], 1
jmp 0x40fcc4
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0
je 0x40fce5
mov dword [ebp - 0x154], 0x83
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x41a108], eax
jmp 0x40fd21
mov dword [ebp - 0x158], 0xa0
mov dword [ebp - 0x10c], 0x5a
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x10c]
or eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
jmp 0x40fd37
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 0x20], eax
jmp 0x40faf2
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [0x41a0fc]
je 0x40fd62
mov edx, dword [0x41a0dc]
and edx, dword [ebp - 4]
je 0x40fd62
mov dword [ebp - 0x84], 1
jmp 0x40fd6c
mov dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0
je 0x40fdb6
mov eax, dword [0x41a100]
imul eax, dword [ebp - 0x30]
mov ecx, dword [str.a6_b_]
sub ecx, dword [ebp - 0xc]
cmp eax, ecx
jbe 0x40fd97
mov dword [ebp - 0x88], 1
jmp 0x40fda1
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0
je 0x40fdb6
mov dword [ebp - 0x8c], 1
jmp 0x40fdc0
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0
je 0x40fdfc
mov edx, dword [ebp - 4]
and edx, dword [ebp - 4]
je 0x40fde5
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
je 0x40fde5
mov dword [ebp - 0x90], 1
jmp 0x40fdef
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0
jne 0x40ff26
mov dword [ebp - 0x118], 0x93
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
or ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
imul edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, dword [0x41a0d8]
mov ecx, dword [ebp - 0x44]
and ecx, dword [0x41a0dc]
cmp eax, ecx
je 0x40fe42
mov dword [ebp - 0x94], 1
jmp 0x40fe4c
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0
je 0x40fe95
mov edx, dword [ebp - 0x20]
sub edx, dword [0x41a0bc]
mov eax, dword [0x41a108]
xor eax, dword [ebp - 0x24]
cmp edx, eax
jae 0x40fe76
mov dword [ebp - 0x98], 1
jmp 0x40fe80
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0
je 0x40fe95
mov dword [ebp - 0x9c], 1
jmp 0x40fe9f
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0
je 0x40fee5
mov ecx, dword [ebp - 8]
or ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
or edx, dword [ebp - 8]
cmp ecx, edx
je 0x40fec4
mov dword [ebp - 0xa0], 1
jmp 0x40fece
mov dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0
je 0x40fee5
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 0x118], eax
jmp 0x40ff21
mov dword [ebp - 0x15c], 0xc8
mov dword [ebp - 0x160], 0x71
mov dword [ebp - 0x11c], 0xe7
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
or eax, dword [ebp - 0xa4]
mov dword [ebp - 0x11c], eax
jmp 0x40ff26
jmp 0x40fd40
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
jmp 0x40f9c0
mov edx, dword [0x41a0c0]
xor edx, dword [ebp - 0xc]
jne 0x40ff58
mov eax, dword [0x41a0dc]
sub eax, dword [0x41a0e0]
jne 0x40ff58
mov dword [ebp - 0xa8], 0
jmp 0x40ff62
mov dword [ebp - 0xa8], 1
cmp dword [ebp - 0xa8], 0
jne 0x40ffaf
mov ecx, dword [ebp - 0x28]
or ecx, dword [0x41a0fc]
mov edx, dword [0x41a0d4]
or edx, dword [str.a6_b_]
cmp ecx, edx
je 0x40ff90
mov dword [ebp - 0xac], 1
jmp 0x40ff9a
mov dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0
jne 0x40ffaf
mov dword [ebp - 0xb0], 0
jmp 0x40ffb9
mov dword [ebp - 0xb0], 1
cmp dword [ebp - 0xb0], 0
jne 0x410002
mov eax, dword [0x41a0e0]
and eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [0x41a100]
cmp eax, ecx
jae 0x40ffe3
mov dword [ebp - 0xb4], 1
jmp 0x40ffed
mov dword [ebp - 0xb4], 0
cmp dword [ebp - 0xb4], 0
jne 0x410002
mov dword [ebp - 0xb8], 0
jmp 0x41000c
mov dword [ebp - 0xb8], 1
cmp dword [ebp - 0xb8], 0
jne 0x410048
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x2c]
cmp edx, eax
jne 0x410031
mov dword [ebp - 0xbc], 1
jmp 0x41003b
mov dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0
je 0x410273
mov dword [ebp - 0xc4], 0xcf
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xdc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x28], eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4100a8
mov dword [ebp - 0xc8], 0x1205
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4100d5
mov dword [ebp - 0x48], 0x23fa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xc4]
movzx eax, word [edx]
mov dword [ebp - 0xdc], eax
push str.PLjb.bHU
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x3c], eax
push str.jnUcYFOcN.wqE
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc8], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41014f
mov dword [ebp - 0x3c], 0x1389
push str.pfBLE.adu
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xcc], eax
mov edx, dword [0x41a0c8]
add edx, dword [0x41a0c8]
jne 0x410185
mov eax, dword [ebp - 0x24]
xor eax, dword [0x41a0bc]
jne 0x410185
mov dword [ebp - 0xd0], 0
jmp 0x41018f
mov dword [ebp - 0xd0], 1
cmp dword [ebp - 0xd0], 0
je 0x4101d6
mov ecx, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x4101b7
mov edx, dword [ebp - 0x1c]
or edx, dword [ebp - 0x14]
jne 0x4101b7
mov dword [ebp - 0xd4], 0
jmp 0x4101c1
mov dword [ebp - 0xd4], 1
cmp dword [ebp - 0xd4], 0
je 0x4101d6
mov dword [ebp - 0xd8], 1
jmp 0x4101e0
mov dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 0
je 0x410233
mov eax, dword [ebp - 0x3c]
and eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x3c]
and ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x410208
mov dword [ebp - 0xe0], 1
jmp 0x410212
mov dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0
je 0x410233
mov dword [ebp - 0x120], 0xaf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [ebp - 0x120], eax
jmp 0x41026e
mov dword [ebp - 0x164], 0x41
mov dword [ebp - 0x124], 0x73
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x16c], 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.00409447
add esp, 8
jmp 0x410435
mov dword [ebp - 0x170], 0x21
mov dword [ebp - 0x128], 0xb1
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x40]
mov dword [0x41a0c0], ecx
mov esi, dword [ebp - 0x1c]
imul esi, dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp esi, eax
jne 0x4102b3
mov dword [ebp - 0xe4], 1
jmp 0x4102bd
mov dword [ebp - 0xe4], 0
cmp dword [ebp - 0xe4], 0
jne 0x41031f
mov edx, dword [0x41a0f4]
xor edx, dword [0x41a0f4]
mov dword [0x41a0d0], edx
je 0x410300
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [0x41a0e0]
push ecx
call fcn.00409737
add esp, 8
test eax, eax
je 0x410300
mov dword [ebp - 0xe8], 1
jmp 0x41030a
mov dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe8], 0
jne 0x41031f
mov dword [ebp - 0xec], 0
jmp 0x410329
mov dword [ebp - 0xec], 1
push fcn.00409447
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0040a997
add esp, 0xc
mov esi, eax
mov ecx, dword [0x41a0e0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, eax
jne 0x410360
mov dword [ebp - 0xf0], 1
jmp 0x41036a
mov dword [ebp - 0xf0], 0
mov edx, dword [ebp - 0xec]
cmp edx, dword [ebp - 0xf0]
jbe 0x410384
mov dword [ebp - 0xf4], 1
jmp 0x41038e
mov dword [ebp - 0xf4], 0
mov eax, dword [0x41a0f4]
xor eax, dword [0x41a0d4]
mov dword [0x41a108], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [0x41a0f8]
mov dword [0x41a0d4], ecx
mov edx, dword [0x41a108]
cmp edx, dword [0x41a0d4]
jne 0x4103c7
mov dword [ebp - 0xf8], 1
jmp 0x4103d1
mov dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0xf8]
je 0x410416
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0xc]
mov dword [0x41a0e8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [0x41a0d8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x41a0f4], eax
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x30]
mov dword [0x41a108], eax
jmp 0x410435
mov eax, dword [ebp - 0x14]
xor edx, edx
div dword [0x41a0e0]
mov dword [0x41a0ec], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [0x41a104]
mov dword [0x41a0f0], ecx
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x20]
pop esi
mov esp, ebp
pop ebp
ret