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

Disassembly:
mov eax, 0x28
call fcn.005b2630
mov eax, dword [0x644a10]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
shr eax, 4
mov dword [esp + 0x14], ecx
xor ebp, ebp
mov ecx, eax
add ecx, edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
adc ebp, edx
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
test eax, eax
je 0x503e24
xor eax, eax
cmp ecx, ecx
jne 0x503e24
cmp ebp, eax
jne 0x503e24
cmp dword [esi + 0x10], eax
je 0x503e24
shr ecx, 1
je 0x503dd5
lea esp, [esp]
inc eax
shr ecx, 1
jne 0x503dd0
push eax
push esi
call fcn.00503700
add esp, 8
test eax, eax
jne 0x503df8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005b2129
add esp, 0x28
ret
mov eax, dword [esi + 0x40]
lea edx, [esi + 0x88]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 8]
lea ecx, [esi + 0x78]
push ecx
mov ecx, dword [esp + 0x1c]
inc edx
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edi
push ebx
call edx
add esp, 0x20
jmp 0x503f75
mov eax, dword [esp + 0x14]
add eax, 1
adc edx, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp edx, ebp
ja 0x503f79
jb 0x503e48
cmp eax, ecx
ja 0x503f79
mov ecx, eax
and eax, 1
xor ebp, ebp
or eax, ebp
mov dword [esp + 0x10], 0
jne 0x503e75
jmp 0x503e60
inc dword [esp + 0x10]
shrd ecx, edx, 1
mov eax, ecx
and eax, 1
xor ebp, ebp
shr edx, 1
or eax, ebp
je 0x503e60
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00503700
add esp, 8
test eax, eax
je 0x503de3
mov ecx, dword [eax]
xor dword [esi + 0x78], ecx
mov edx, dword [eax + 4]
xor dword [esi + 0x7c], edx
mov ecx, dword [eax + 8]
xor dword [esi + 0x80], ecx
mov edx, dword [eax + 0xc]
xor dword [esi + 0x84], edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
xor dword [esi + 0x88], eax
xor dword [esi + 0x90], edx
xor eax, dword [esi + 0x78]
xor edx, dword [esi + 0x80]
xor dword [esi + 0x8c], ecx
xor ecx, dword [esi + 0x7c]
xor dword [esi + 0x94], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x84]
push eax
mov eax, dword [esi]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], ebp
xor dword [esp + 0x34], edx
push ecx
mov edx, ecx
push edx
add ebx, 0x10
call eax
mov edx, dword [esi + 0x80]
xor dword [esp + 0x38], edx
mov eax, dword [esp + 0x30]
xor eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x34]
xor ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x3c]
xor edx, dword [esi + 0x84]
mov ebp, dword [esp + 0x2c]
mov dword [edi], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], edx
add esp, 0xc
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x18]
add edi, 0x10
add eax, 1
adc edx, 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp edx, ebp
jb 0x503e48
ja 0x503f75
cmp eax, dword [esp + 0x1c]
jbe 0x503e48
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
and eax, 0xf
mov dword [esp + 0x10], eax
jbe 0x50404f
mov ecx, dword [esi + 0x20]
xor dword [esi + 0x78], ecx
mov edx, dword [esi + 0x24]
xor dword [esi + 0x7c], edx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
xor dword [esi + 0x80], ecx
mov ecx, dword [esi + 8]
xor dword [esi + 0x84], edx
lea eax, [esi + 0x78]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esi]
call eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor ecx, ecx
test edx, edx
je 0x503ff9
lea eax, [esp + 0x24]
mov edx, ebx
sub edx, eax
mov dword [esp + 0x14], edx
sub edi, eax
jmp 0x503fe4
mov edx, dword [esp + 0x14]
lea eax, [esp + ecx + 0x24]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
mov edx, dword [esp + 0x10]
cmp ecx, edx
jb 0x503fe0
xor eax, eax
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x30], 0x80
mov edx, dword [esp + 0x30]
xor dword [esi + 0x88], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
xor dword [esi + 0x90], ecx
mov edx, dword [esp + 0x3c]
xor dword [esi + 0x8c], eax
mov ecx, dword [esp + 0x28]
add esp, 0xc
xor dword [esi + 0x94], edx
pop edi
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x54], ebp
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005b2129
add esp, 0x28
ret