Function at 0x53ffb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61008e
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x118], eax
mov esi, dword [ebp + 8]
mov dword [eax + 0x68], 0
mov dword [ebp - 0x134], esi
mov edx, dword [esi + 4]
sub edx, dword [esi]
sar edx, 2
mov dword [ebp - 0x130], edx
test edx, edx
je 0x54041b
cmp dword [eax + 0xc], 0
je 0x54041b
xor ecx, ecx
mov dword [ebp - 0x128], ecx
test edx, edx
je 0x54041b
mov eax, dword [esi]
mov ecx, dword [eax + ecx*4]
sub ecx, 0x10
call fcn.0040c950
add eax, 0x10
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 1
mov edx, str.FILE_TYPE_COMMON
mov ecx, eax
nop dword [eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x540076
test si, si
je 0x540072
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x540076
add ecx, 4
add edx, 4
test si, si
jne 0x540050
xor ecx, ecx
jmp 0x54007b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x5400aa
cmp dword [0x6b8fd0], ecx
jne 0x5400aa
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5403fc
mov ecx, dword [edx]
push edx
jmp 0x5403f7
push ecx
lea edi, [eax - 0x10]
mov dword [ebp - 0x120], esp
mov esi, esp
mov dword [ebp - 0x12c], edi
mov ecx, edi
mov dword [ebp - 0x15c], esi
call fcn.0040c950
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax + 0xc]
add ecx, 0x9bc
mov byte [ebp - 4], 1
call fcn.004d7d70
mov esi, eax
test esi, esi
je 0x5403e0
mov eax, dword [ebp - 0x118]
xorps xmm0, xmm0
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x154], 0x20
movups xmmword [ebp - 0x144], xmm0
cmp dword [eax + 0x84], 0
mov dword [ebp - 0x14c], esi
jne 0x54013e
push str.GetImagePixelInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x84], eax
mov eax, ecx
cmp dword [eax + 0x88], 0
jne 0x54015f
push str.Init
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x88], eax
push str.GetSupportFormat
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x144], eax
test eax, eax
jne 0x54017a
jmp 0x5403e0
push str.IsFileSigSimple
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x54018f
jmp 0x5403e0
mov eax, dword [eax]
push str.CanGetFileLenImmediately
push esi
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x150], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x5401b8
jmp 0x5403e0
cmp dword [eax], 0
je 0x5401de
push str.GetFileSizeAtOnce
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x13c], eax
test eax, eax
jne 0x5401d8
jmp 0x5403e0
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
push str.GetFileSign
push esi
mov dword [ebp - 0x148], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x540201
jmp 0x5403e0
push str.GetRawFileInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x140], eax
test eax, eax
jne 0x54021c
jmp 0x5403e0
cmp dword [ebp - 0x120], 0
je 0x540338
lea eax, [ebp - 0x114]
push eax
call dword [ebp - 0x11c]
add esp, 4
test eax, eax
je 0x540398
mov edx, dword [ebp - 0x14]
cmp edx, 0x100
jge 0x540398
mov eax, dword [ebp - 0x118]
xor esi, esi
mov edi, dword [eax + 0x68]
mov ecx, dword [eax + 0x6c]
lea eax, [edx - 1]
mov dword [ebp - 0x11c], edi
test eax, eax
jle 0x5402d4
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x114]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [ebp - 0x120], eax
test ecx, ecx
jne 0x5402c6
push 0x404
call fcn.00560437
mov edx, eax
add esp, 4
mov dword [ebp - 0x160], edx
mov byte [ebp - 4], 0xb
mov ecx, 0x100
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x400], 0xffffffff
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
mov dword [ecx], edx
mov ecx, edx
mov edx, dword [ebp - 0x14]
inc esi
lea eax, [edx - 1]
cmp esi, eax
jl 0x540270
mov edi, dword [ebp - 0x11c]
movzx eax, byte [ebp + esi - 0x114]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
test eax, eax
jne 0x540327
push 0x404
call fcn.00560437
mov edx, eax
add esp, 4
mov dword [ebp - 0x164], edx
mov byte [ebp - 4], 0xc
mov ecx, 0x100
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x400], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x11c]
mov dword [esi], edx
mov dword [edx + 0x400], eax
jmp 0x540398
cmp dword [eax + 0x400], 0xffffffff
jne 0x540398
mov dword [eax + 0x400], edi
jmp 0x540398
lea eax, [ebp - 0x120]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x124], xmm0
call dword [ebp - 0x11c]
add esp, 4
test eax, eax
je 0x540398
cmp dword [ebp - 0x120], 0
je 0x540398
mov ecx, dword [ebp - 0x118]
mov eax, dword [ecx + 0x68]
add ecx, 0x78
mov dword [ebp - 0x124], eax
mov edx, dword [ecx + 4]
cmp dword [ecx + 8], edx
je 0x54038b
mov dword [edx], eax
mov eax, dword [ebp - 0x120]
mov dword [edx + 4], eax
add dword [ecx + 4], 8
jmp 0x540398
lea eax, [ebp - 0x124]
push eax
push edx
call fcn.005419a0
mov ecx, dword [ebp - 0x118]
add ecx, 0x10
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x5403c4
movups xmm0, xmmword [ebp - 0x154]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x144]
movups xmmword [eax + 0x10], xmm0
add dword [ecx + 4], 0x20
jmp 0x5403d1
lea edx, [ebp - 0x154]
push edx
push eax
call fcn.00541ba0
mov eax, dword [ebp - 0x118]
mov edi, dword [ebp - 0x12c]
inc dword [eax + 0x68]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5403fc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x128]
mov esi, dword [ebp - 0x134]
inc ecx
mov dword [ebp - 0x128], ecx
cmp ecx, dword [ebp - 0x130]
jb 0x540025
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4