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

Disassembly:
push ebp
push edi
mov edi, ecx
mov ecx, 0x5b3a40
push esi
push ebx
sub esp, 0x3c
mov dword [esp], str.UNIT
call fcn.00467330
mov esi, dword [eax + 0x114]
sub esp, 4
mov ebx, eax
mov dword [esp + 0x18], eax
imul eax, esi, 0x84
mov dword [edi + 4], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov edx, dword [ebx + 0x114]
mov dword [edi + 0xc], eax
test edx, edx
jle 0x530447
lea eax, [edi + 0x14]
xor edx, edx
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov dword [esp + 0x20], eax
lea eax, [edi + 0x380]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x138]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x25c]
mov edi, edx
mov dword [esp + 0x2c], eax
jmp 0x5300f3
mov dword [ebx + 0x4c], eax
test byte [esi + 0x7c], 0xdf
jne 0x5303c3
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004bf150
mov dword [ebx + 0x54], eax
sub esp, 4
test byte [esi + 0x94], 0xdf
jne 0x530400
mov dword [ebx + 0x58], eax
test byte [esi + 0xa0], 0xdf
jne 0x5303e0
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x5c], eax
lea eax, [esi + 0xc9]
mov ecx, 0x5ba360
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov word [ebx + 0x40], ax
sub esp, 8
lea eax, [esi + 0xcc]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x42], al
sub esp, 8
lea eax, [esi + 0xc6]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov word [ebx + 0x44], ax
sub esp, 8
cmp byte [esi + 0x28], 0x31
je 0x530420
mov eax, dword [esp + 0x18]
add edi, 0x84
cmp ebp, dword [eax + 0x114]
jge 0x530440
add ebp, 1
mov ecx, dword [esp + 0x18]
mov dword [esp], ebp
call fcn.00423c50
mov ecx, 0x5ba360
sub esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0xc]
mov dword [esp + 8], 0xf
mov dword [esp + 4], esi
add ebx, edi
mov dword [esp], ebx
call fcn.00499bb0
lea eax, [esi + 0xb4]
mov word [ebx + 0x10], bp
mov ecx, 0x5ba360
sub esp, 0xc
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov word [ebx + 0x12], ax
sub esp, 8
lea eax, [esi + 0xb7]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov word [ebx + 0x14], ax
sub esp, 8
lea eax, [esi + 0xba]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x16], al
movzx eax, byte [esi + 0x1f]
sub esp, 8
mov byte [ebx + 0x17], al
movzx eax, byte [esi + 0x27]
mov byte [ebx + 0x19], al
lea eax, [esi + 0x29]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov dword [ebx + 0x1c], eax
sub esp, 8
lea eax, [esi + 0x2c]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov dword [ebx + 0x20], eax
sub esp, 8
lea eax, [esi + 0x2f]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov dword [ebx + 0x24], eax
sub esp, 8
lea eax, [esi + 0x32]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov word [ebx + 0x2c], ax
sub esp, 8
lea eax, [esi + 0x35]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov dword [ebx + 0x28], eax
sub esp, 8
lea eax, [esi + 0x38]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x2e], al
sub esp, 8
lea eax, [esi + 0x3b]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
sub esp, 8
cmp byte [ebx + 0x17], 0x57
mov word [ebx + 0x32], ax
mov word [ebx + 0x30], ax
jne 0x53028b
movzx eax, byte [esi + 0x3e]
sub eax, 0x30
mov byte [ebx + 0x34], al
lea eax, [esi + 0x3f]
mov dword [esp + 4], 3
mov ecx, 0x5ba360
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x35], al
sub esp, 8
lea eax, [esi + 0x42]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov word [ebx + 0x36], ax
sub esp, 8
lea eax, [esi + 0x45]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x38], al
sub esp, 8
lea eax, [esi + 0xbd]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x39], al
sub esp, 8
lea eax, [esi + 0xc0]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x3a], al
sub esp, 8
lea eax, [esi + 0xc3]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x3c], al
sub esp, 8
lea eax, [esi + 0x5e]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov ecx, 0x5ba360
mov byte [ebx + 0x3d], al
sub esp, 8
lea eax, [esi + 0x61]
mov dword [esp + 4], 3
mov dword [esp], eax
call fcn.00499c60
mov byte [ebx + 0x3e], al
mov eax, dword [esi + 0x6c]
sub esp, 8
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004bf150
mov dword [ebx + 0x48], eax
sub esp, 4
test byte [esi + 0x70], 0xdf
je 0x530020
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004bf150
mov dword [ebx + 0x4c], eax
sub esp, 4
test byte [esi + 0x7c], 0xdf
je 0x53002d
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004bf150
sub esp, 4
jmp 0x530030
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x5c8]
mov eax, dword [esi + 0xa8]
mov dword [esp], eax
call fcn.004bf150
sub esp, 4
jmp 0x53006b
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x4a4]
mov eax, dword [esi + 0x9c]
mov dword [esp], eax
call fcn.004bf150
sub esp, 4
jmp 0x530058
mov eax, 0x101
mov dword [ebx + 0x60], 0x1010101
mov word [ebx + 0x64], ax
mov byte [ebx + 0x66], 1
jmp 0x5300dd
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 4]
xor ebx, ebx
xor edx, edx
test esi, esi
jle 0x53048e
nop
mov ebp, dword [edi + 0xc]
lea esi, [ebp + ebx]
movsx eax, byte [esi + 0x3a]
test al, al
je 0x530480
imul eax, eax, 0x84
movzx ecx, byte [esi + 0x39]
mov byte [ebp + eax - 0x4b], cl
movsx eax, byte [esi + 0x3a]
lea ecx, [edx + 1]
imul eax, eax, 0x84
add eax, dword [edi + 0xc]
mov byte [eax - 0x49], cl
add edx, 1
add ebx, 0x84
cmp dword [edi + 4], edx
jg 0x530450
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret