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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
dec eax
cmp eax, 5
ja 0x100046c6
push ebx
push edi
mov edi, dword [ebp + 8]
push dword [esi + 0x2c]
push dword [esi + 0x28]
movzx eax, byte [edi]
cdq
mov ebx, eax
mov ecx, edx
movzx eax, byte [edi + 1]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
or ebx, eax
movzx eax, byte [edi + 2]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
or ebx, eax
movzx eax, byte [edi + 3]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
or ebx, eax
movzx eax, byte [edi + 4]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
or ebx, eax
movzx eax, byte [edi + 5]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
or ebx, eax
movzx eax, byte [edi + 6]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
or ebx, eax
movzx eax, byte [edi + 7]
shld ecx, ebx, 8
cdq
shl ebx, 8
or ecx, edx
xor ecx, dword [esi + 0xc]
or ebx, eax
xor ebx, dword [esi + 8]
push ecx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
call fcn.100055f0
mov dword [ebp - 8], eax
mov ebx, edx
movzx eax, byte [edi + 8]
cdq
mov ecx, eax
mov esi, edx
movzx eax, byte [edi + 9]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0xa]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0xb]
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xc]
or esi, edx
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0xd]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0xe]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0xf]
mov edi, dword [ebp - 8]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
xor ebx, esi
mov eax, dword [ebp + 0xc]
xor edi, ecx
push dword [eax + 0x34]
xor ebx, dword [eax + 0x14]
push dword [eax + 0x30]
xor edi, dword [eax + 0x10]
push ebx
push edi
call fcn.100055f0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor esi, edx
mov edx, dword [ebp + 0xc]
xor ecx, eax
mov dword [ebp - 0xc], ecx
push dword [edx + 0x3c]
push dword [edx + 0x38]
push esi
push ecx
call fcn.100055f0
xor edi, eax
xor ebx, edx
mov eax, dword [ebp + 0xc]
push dword [eax + 0x44]
push dword [eax + 0x40]
push ebx
push edi
call fcn.100055f0
mov ecx, dword [ebp - 0xc]
add esp, 0x40
xor ecx, eax
xor esi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
push dword [eax + 0x4c]
push dword [eax + 0x48]
push esi
push ecx
call fcn.100055f0
xor edi, eax
xor ebx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [eax + 0x54]
push dword [eax + 0x50]
push ebx
push edi
call fcn.100055f0
mov edi, dword [ebp - 0xc]
xor edi, eax
xor esi, edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xe8]
mov eax, dword [edx + 0xec]
push dword [edx + 0x5c]
and eax, esi
push dword [edx + 0x58]
rol eax, 1
xor edi, eax
xor eax, eax
or eax, edi
or ecx, edi
mov edi, dword [edx + 0xf0]
xor ecx, esi
or edi, dword [ebp - 8]
mov esi, dword [edx + 0xf4]
xor edi, ebx
push ecx
and esi, edi
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0xc], ecx
rol esi, 1
call fcn.100055f0
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebp - 8]
or ecx, edi
mov edi, dword [ebp - 0x10]
xor eax, esi
xor edi, eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
xor ebx, ecx
push dword [eax + 0x64]
push dword [eax + 0x60]
push ebx
push edi
call fcn.100055f0
mov esi, dword [ebp - 4]
add esp, 0x40
xor esi, eax
mov eax, dword [ebp - 0xc]
xor eax, edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [edx + 0x6c]
push dword [edx + 0x68]
push eax
push esi
call fcn.100055f0
xor edi, eax
xor ebx, edx
mov eax, dword [ebp + 0xc]
push dword [eax + 0x74]
push dword [eax + 0x70]
push ebx
push edi
call fcn.100055f0
xor esi, eax
mov eax, dword [ebp - 0xc]
xor eax, edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [edx + 0x7c]
push dword [edx + 0x78]
push eax
push esi
call fcn.100055f0
xor edi, eax
xor ebx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push dword [eax + 0x84]
push dword [eax + 0x80]
push ebx
push edi
call fcn.100055f0
mov ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, dword [ebp + 0xc]
add esp, 0x40
xor ecx, edx
mov edx, dword [eax + 0xf8]
mov eax, dword [eax + 0xfc]
and eax, ecx
rol eax, 1
xor esi, eax
xor eax, eax
or edx, esi
or eax, esi
xor edx, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
push dword [ecx + 0x8c]
mov edi, dword [ecx + 0x100]
or edi, dword [ebp - 0x10]
push dword [ecx + 0x88]
mov esi, dword [ecx + 0x104]
xor edi, ebx
mov ebx, edx
and esi, edi
push ebx
push eax
rol esi, 1
call fcn.100055f0
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
or ecx, edi
mov edi, dword [ebp + 0xc]
xor eax, esi
mov dword [ebp - 0xc], edx
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor esi, ecx
push dword [edi + 0x94]
xor edx, eax
push dword [edi + 0x90]
mov dword [ebp - 8], edx
push esi
push edx
call fcn.100055f0
push dword [edi + 0x9c]
mov ecx, dword [ebp - 4]
xor ebx, edx
push dword [edi + 0x98]
xor ecx, eax
push ebx
push ecx
mov dword [ebp - 4], ecx
call fcn.100055f0
push dword [edi + 0xa4]
mov ecx, dword [ebp - 8]
xor esi, edx
push dword [edi + 0xa0]
xor ecx, eax
push esi
push ecx
mov dword [ebp - 8], ecx
call fcn.100055f0
mov ecx, dword [ebp - 4]
add esp, 0x40
xor ebx, edx
xor ecx, eax
mov dword [ebp - 4], ecx
push dword [edi + 0xac]
push dword [edi + 0xa8]
push ebx
push ecx
call fcn.100055f0
push dword [edi + 0xb4]
mov ecx, dword [ebp - 8]
xor esi, edx
push dword [edi + 0xb0]
xor ecx, eax
mov dword [ebp - 0xc], esi
push esi
push ecx
mov dword [ebp - 8], ecx
call fcn.100055f0
mov esi, dword [ebp - 4]
add esp, 0x20
xor esi, eax
mov dword [ebp - 4], esi
mov eax, dword [edi]
xor ebx, edx
add eax, 0xfffffffd
cmp eax, 3
ja 0x10004604
mov ecx, dword [edi + 0x10c]
mov eax, ebx
mov ebx, dword [edi + 0x108]
and ecx, eax
mov edi, dword [edi + 0x110]
or edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
rol ecx, 1
xor ecx, esi
or ebx, ecx
xor ebx, eax
xor eax, eax
or eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0xbc]
mov esi, dword [eax + 0x114]
push dword [eax + 0xb8]
and esi, edi
push ebx
push dword [ebp - 4]
rol esi, 1
call fcn.100055f0
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
or ecx, edi
mov edi, dword [ebp + 0xc]
xor edx, esi
mov esi, dword [ebp - 0xc]
xor eax, edx
xor esi, ecx
mov dword [ebp - 8], eax
push dword [edi + 0xc4]
push dword [edi + 0xc0]
push esi
push eax
call fcn.100055f0
push dword [edi + 0xcc]
mov ecx, dword [ebp - 4]
xor ebx, edx
push dword [edi + 0xc8]
xor ecx, eax
push ebx
push ecx
mov dword [ebp - 4], ecx
call fcn.100055f0
push dword [edi + 0xd4]
mov ecx, dword [ebp - 8]
xor esi, edx
push dword [edi + 0xd0]
xor ecx, eax
push esi
push ecx
mov dword [ebp - 8], ecx
call fcn.100055f0
mov ecx, dword [ebp - 4]
add esp, 0x40
xor ebx, edx
xor ecx, eax
mov dword [ebp - 4], ecx
push dword [edi + 0xdc]
push dword [edi + 0xd8]
push ebx
push ecx
call fcn.100055f0
push dword [edi + 0xe4]
mov ecx, dword [ebp - 8]
xor esi, edx
push dword [edi + 0xe0]
xor ecx, eax
mov dword [ebp - 0xc], esi
push esi
push ecx
mov dword [ebp - 8], ecx
call fcn.100055f0
xor dword [ebp - 4], eax
add esp, 0x20
xor ebx, edx
xor ebx, dword [edi + 0x24]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
xor eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [edi + 0x1c]
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0x18
mov byte [edx], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 1], al
mov eax, ecx
shr eax, 8
mov byte [edx + 2], al
mov dword [ebp - 0xc], ecx
mov esi, dword [ebp - 0xc]
mov eax, esi
mov byte [edx + 3], cl
mov ecx, dword [ebp - 8]
shrd ecx, eax, 0x18
mov byte [edx + 0xb], bl
shr eax, 0x18
mov byte [edx + 4], cl
mov eax, esi
mov ecx, dword [ebp - 8]
shrd ecx, eax, 0x10
pop edi
shr eax, 0x10
mov byte [edx + 5], cl
mov ecx, dword [ebp - 8]
mov eax, ecx
shrd eax, esi, 8
mov byte [edx + 7], cl
mov ecx, dword [ebp - 4]
mov byte [edx + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [edx + 8], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 9], al
mov eax, ebx
shr eax, 8
mov byte [edx + 0xa], al
mov eax, ebx
shrd ecx, eax, 0x18
shr esi, 8
shr eax, 0x18
mov byte [edx + 0xc], cl
mov eax, ebx
mov ecx, dword [ebp - 4]
shrd ecx, eax, 0x10
shr eax, 0x10
mov byte [edx + 0xd], cl
mov ecx, dword [ebp - 4]
mov eax, ecx
shrd eax, ebx, 8
mov byte [edx + 0xf], cl
shr ebx, 8
pop ebx
mov byte [edx + 0xe], al
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret