Function at 0x4151c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5ff004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 4]
push esi
push edi
push 4
push 0
push 0
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x28], ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x415251
mov eax, dword [esp + 0xc]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0xf]
shl ecx, 8
or ecx, eax
and ecx, 0x7f7f7f7f
cmp ecx, 0x48434100
jne 0x415251
mov edx, 0x5ef97c
mov ecx, ebx
call fcn.0040b140
test eax, eax
je 0x415251
mov ecx, ebx
call fcn.0040a7c0
mov esi, eax
test esi, esi
jne 0x415265
push str.HCA:_unknown_format__report__n
call fcn.0040b9e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x40], 0
je 0x4154e4
push ebx
mov edx, 0xa
lea ecx, [esp + 0x44]
call fcn.004e4c80
add esp, 4
cmp eax, 8
jne 0x415317
movzx eax, byte [esp + 0x40]
cdq
mov edi, eax
mov ebx, edx
movzx eax, byte [esp + 0x41]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x42]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x43]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x44]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x45]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x46]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x47]
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
mov eax, dword [ebp + 0xc]
or ebx, edx
mov dword [esp + 0xc], eax
jmp 0x415479
cmp eax, 0xa
jne 0x4153be
movzx eax, byte [esp + 0x40]
cdq
mov edi, eax
movzx ecx, byte [esp + 0x48]
movzx eax, byte [esp + 0x41]
mov ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
shl cx, 8
movzx eax, byte [esp + 0x42]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x43]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x44]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x45]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x46]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x47]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esp + 0x49]
or cx, ax
movzx eax, cx
mov dword [esp + 0xc], eax
jmp 0x415479
xor eax, eax
mov dword [esp + 0x22], 0
mov word [esp + 0x26], ax
xor edi, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], 0x30dbe1ab
mov dword [esp + 0x2c], 0xcc554639
mov dword [esp + 0xc], eax
mov word [esp + 0x20], ax
jmp 0x415400
mov ecx, dword [edi + 0x5298dc]
lea edx, [esp + 0x18]
mov eax, dword [edi + 0x5298d8]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0040aca0
mov edx, dword [esp + 0x30]
test eax, eax
js 0x415449
test edx, edx
jle 0x415433
cmp eax, edx
jge 0x415449
test eax, eax
jle 0x415449
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp edx, 1
je 0x415459
add edi, 8
cmp edi, 0x1bb8
jb 0x415400
mov edi, dword [esp + 0x28]
xor eax, eax
mov ebx, dword [esp + 0x2c]
test edx, edx
push str.HCA:_decryption_key_not_found_n
setle al
push eax
call fcn.0040ba00
mov eax, dword [ebp + 0xc]
add esp, 8
movzx eax, ax
cdq
mov ecx, eax
mov dword [esp + 0x3c], eax
or ecx, edx
mov dword [esp + 0x10], edx
je 0x4154bb
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
not eax
movzx eax, ax
cdq
add eax, 2
push ebx
adc edx, 0
shld dword [esp + 0x14], ecx, 0x10
or edx, dword [esp + 0x14]
push edi
shl ecx, 0x10
or eax, ecx
push edx
push eax
call fcn.0051eeb0
mov edi, eax
mov ebx, edx
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x4154e0
cmp dword [edx], 0
mov dword [edx + 0x78], edi
mov dword [edx + 0x7c], ebx
je 0x4154e0
push ebx
lea ecx, [edx + 0x20c]
mov edx, dword [edx + 0x70]
push edi
call fcn.004d9360
add esp, 8
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x10]
call fcn.00405ab0
mov edi, eax
test edi, edi
jne 0x415539
mov eax, dword [esi]
test eax, eax
je 0x415504
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 4
mov eax, dword [esi + 0x5c]
mov dword [eax], 0
push dword [esi + 0x5c]
call fcn.005092c3
add esp, 4
push dword [esi + 0x54]
call fcn.005092c3
add esp, 4
push dword [esi + 0x44]
call fcn.005092c3
add esp, 4
push esi
call fcn.005092c3
jmp 0x41524e
mov dword [edi + 0x14], 0x10f
mov eax, dword [esi + 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x38]
imul eax, dword [esi + 0x18]
push ebx
sub eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
mov dword [edi], eax
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x38]
add eax, dword [esi + 0x30]
sub eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x2c]
inc eax
imul eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
sub eax, dword [esi + 0x1c]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 4]
call eax
mov ecx, dword [esi + 0x18]
add esp, 4
imul ecx, dword [esi + 0x14]
cmp ecx, eax
jbe 0x4155a4
mov eax, dword [ebx + 4]
push ebx
call eax
xor edx, edx
add esp, 4
div dword [esi + 0x14]
imul eax, dword [esi + 0x38]
sub eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x20]
mov dword [edi], eax
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0x1a4], esi
mov dword [edi + 0xc], 0x73
mov eax, dword [eax*4 + 0x52b490]
mov dword [edi + 0x144], eax
mov eax, edi
mov dword [edi + 0x10], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00502eb4
mov esp, ebp
pop ebp
ret