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

Disassembly:
sub esp, 0x124
mov eax, dword [0x588e74]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x13c]
lea ebp, [esp + 0xb0]
mov dword [esp + 0x6c], ebx
add edi, 2
mov ebx, 0x10
nop dword [eax]
movzx eax, byte [edi - 2]
lea edi, [edi + 8]
cdq
lea ebp, [ebp + 8]
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 - 8]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi - 7]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi - 6]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi - 5]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi - 4]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi - 3]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
sub ebx, 1
jne 0x50c3b0
mov ebx, dword [esp + 0x6c]
mov edx, 1
mov dword [esp + 0x50], edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x20]
mov edi, eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0x60], eax
xor al, al
mov dword [esp + 0xac], ecx
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov byte [esp + 0x13], al
mov dword [esp + 0x54], ecx
nop dword [eax]
cmp al, 0x10
jae 0x50c54b
mov eax, dword [esp + ecx + 0xb0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + ecx + 0xb4]
jmp 0x50c655
lea eax, [edx - 3]
xor esi, esi
and eax, 0xf
mov ecx, dword [esp + eax*8 + 0xb0]
mov eax, dword [esp + eax*8 + 0xb4]
mov dword [esp + 0x4c], eax
mov eax, edx
and eax, 0xf
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0xb0]
mov ebx, dword [esp + eax*8 + 0xb0]
mov edi, ebx
mov ebp, dword [esp + eax*8 + 0xb4]
lea eax, [edx - 1]
and eax, 0xf
shl edi, 0x1f
mov edx, ebp
lea eax, [ecx + eax*8]
mov ecx, ebx
shrd ecx, edx, 8
mov dword [esp + 0x68], eax
mov eax, ebx
or esi, ecx
shr edx, 8
shl eax, 0x18
mov ecx, ebx
or eax, edx
mov dword [esp + 0x20], esi
mov edx, ebp
xor esi, esi
shrd ecx, edx, 1
shrd ebx, ebp, 7
or esi, ecx
shr edx, 1
mov ecx, dword [esp + 0x20]
or edi, edx
mov edx, dword [esp + 0x4c]
xor ecx, esi
xor ecx, ebx
shr ebp, 7
mov dword [esp + 0x20], ecx
xor eax, edi
mov ecx, dword [esp + 0x48]
xor eax, ebp
mov ebp, ecx
xor ebx, ebx
shrd ecx, edx, 0x13
shl ebp, 0xd
xor esi, esi
or ebx, ecx
shr edx, 0x13
mov ecx, dword [esp + 0x48]
or ebp, edx
mov edx, dword [esp + 0x4c]
mov edi, edx
shld edx, ecx, 3
shr edi, 0x1d
shl ecx, 3
or esi, edx
mov edx, dword [esp + 0x4c]
or edi, ecx
mov ecx, dword [esp + 0x48]
xor ebp, esi
shrd ecx, edx, 6
xor ebx, edi
shr edx, 6
xor ebx, ecx
mov ecx, dword [esp + 0x50]
xor ebp, edx
mov edx, dword [esp + 0x20]
add edx, ebx
adc eax, ebp
add ecx, 0xfffffff8
and ecx, 0xf
add edx, dword [esp + ecx*8 + 0xb0]
adc eax, dword [esp + ecx*8 + 0xb4]
mov ecx, dword [esp + 0x68]
add edx, dword [ecx]
mov dword [esp + 0x20], edx
adc eax, dword [ecx + 4]
mov dword [ecx], edx
mov edi, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, edx
mov ecx, edi
shld edx, ecx, 0x17
shr ebp, 9
xor esi, esi
or ebx, edx
shl ecx, 0x17
mov edx, dword [esp + 0x1c]
or ebp, ecx
mov ecx, dword [esp + 0x14]
shrd ecx, edx, 0x12
shl edi, 0xe
or esi, ecx
shr edx, 0x12
mov ecx, dword [esp + 0x14]
or edi, edx
mov edx, dword [esp + 0x1c]
xor ebx, edi
mov edi, ecx
xor ebp, esi
shrd ecx, edx, 0xe
xor esi, esi
shl edi, 0x12
or esi, ecx
shr edx, 0xe
mov ecx, dword [esp + 0x44]
or edi, edx
xor ecx, dword [esp + 0x3c]
xor ebx, edi
and ecx, dword [esp + 0x1c]
xor ebp, esi
xor ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
xor edx, dword [esp + 0x38]
and edx, dword [esp + 0x14]
xor edx, dword [esp + 0x40]
add ebp, edx
adc ebx, ecx
mov ecx, dword [esp + 0x54]
add ebp, dword [ecx + 0x450b68]
adc ebx, dword [ecx + 0x450b6c]
add ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
adc ebx, eax
add ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
adc ebx, dword [esp + 0x64]
xor edi, edi
mov dword [esp + 0x68], ebx
xor edx, edx
mov ebx, eax
shrd eax, ecx, 0x1c
shl ebx, 4
shr ecx, 0x1c
or edi, eax
mov eax, dword [esp + 0x24]
or ebx, ecx
mov ecx, dword [esp + 0x18]
mov esi, ecx
shld ecx, eax, 0x1e
shr esi, 2
shl eax, 0x1e
or edx, ecx
mov ecx, dword [esp + 0x18]
or esi, eax
mov eax, dword [esp + 0x24]
xor edi, esi
mov esi, ecx
xor ebx, edx
shld ecx, eax, 0x19
shr esi, 7
xor edx, edx
shl eax, 0x19
or edx, ecx
mov ecx, dword [esp + 0x2c]
or esi, eax
xor edi, esi
xor ebx, edx
mov esi, ecx
and ecx, dword [esp + 0x24]
xor esi, dword [esp + 0x24]
and esi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
or esi, ecx
xor edx, dword [esp + 0x18]
and edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
or edx, eax
mov eax, dword [esp + 0x38]
add edi, esi
mov esi, dword [esp + 0x44]
adc ebx, edx
mov dword [esp + 0x64], esi
mov edx, dword [esp + 0x40]
mov esi, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, ebp
add eax, dword [esp + 0x58]
mov dword [esp + 0x60], edx
adc ecx, dword [esp + 0x5c]
add esi, ebp
mov edx, dword [esp + 0x2c]
mov ebp, ebx
adc ebp, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x13]
mov edi, dword [esp + 0x14]
inc al
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
inc edx
mov ecx, dword [esp + 0x54]
add ecx, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x13], al
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
cmp al, 0x50
jb 0x50c530
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
add ecx, esi
adc edx, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
adc edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x80]
add ecx, dword [esp + 0x30]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x84]
adc edx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x88]
add ecx, dword [esp + 0x58]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x8c]
adc edx, dword [esp + 0x5c]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x90]
add ecx, edi
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x94]
adc edx, dword [esp + 0x1c]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x98]
add ecx, dword [esp + 0x38]
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x9c]
adc edx, dword [esp + 0x3c]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0xa0]
add ecx, dword [esp + 0x40]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0xa4]
adc edx, dword [esp + 0x44]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0xa8]
add ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword [eax + 0x34], edx
mov edx, dword [esp + 0xa4]
adc edx, dword [esp + 0x5c]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x128]
pop ebp
pop ebx
xor ecx, esp
mov dword [eax + 0x3c], edx
call fcn.005168d0
add esp, 0x124
ret