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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 8
mov ebx, ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
movsx esi, word [ebx + 0x3d]
cmp eax, esi
jle 0x529965
mov eax, dword [esp + 0x20]
lea esi, [eax + eax]
add esi, esi
mov ecx, esi
call fcn.004dbd80
mov dword [esp], eax
mov ecx, esi
call fcn.004dbd80
mov dword [esp + 4], eax
movsx ecx, word [ebx + 0x3d]
mov edi, dword [esp]
mov esi, dword [ebx + 0x97]
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 0x3d]
mov edi, dword [esp + 4]
mov esi, dword [ebx + 0x9b]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x97]
call fcn.004dbc10
mov ecx, dword [ebx + 0x9b]
call fcn.004dbc10
mov eax, dword [esp]
mov dword [ebx + 0x97], eax
mov esi, dword [esp + 4]
mov dword [ebx + 0x9b], esi
mov edi, dword [esp + 0x20]
mov word [ebx + 0x3d], di
push ebx
push 0x52a61c
mov ecx, dword [ebx + 0x39]
call fcn.004e86b4
mov eax, dword [ebx + 0x39]
test eax, eax
je 0x529a1d
test ebp, ebp
je 0x5299b4
mov eax, dword [ebx]
movzx esi, word [ebp + 0xc]
push esi
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
je 0x5299ad
mov edi, dword [ebp + 0x10]
cmp edi, 1
jle 0x529993
mov esi, dword [eax + 0x2d]
test esi, esi
je 0x5299ad
movzx esi, word [ebp + 0xe]
push dword [ebx + 0x5f]
push ebx
push edi
push esi
mov ecx, eax
call fcn.004f65a4
cmp eax, 1
je 0x529b16
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x529974
mov eax, dword [ebx + 0xf]
test eax, eax
je 0x5299f7
movzx eax, byte [eax + 0xa]
shl eax, 0x1a
sar eax, 0x1a
cmp eax, 0xd
jne 0x5299f2
mov eax, dword [ebx + 0x29]
movzx ecx, word [eax + 4]
call fcn.0051c948
mov ebp, eax
test ebp, ebp
je 0x5299f7
mov ecx, ebp
mov edx, ebx
call fcn.0052a560
test eax, eax
je 0x5299f7
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x5299dc
jmp 0x5299f7
cmp eax, 0x13
je 0x5299ca
mov eax, dword [ebx + 0x29]
movzx ecx, word [eax + 6]
call fcn.0051c948
mov ebp, eax
test ebp, ebp
je 0x529a1d
mov ecx, ebp
mov edx, ebx
call fcn.0052a560
test eax, eax
je 0x529a1d
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x529a09
xor eax, eax
mov al, byte [ebx + 0xb3]
and eax, 0x20
test eax, 0xffffffe0
je 0x529a43
mov ecx, dword [ebx + 0x5f]
call fcn.00560820
mov ecx, dword [ebx + 0x5f]
call fcn.00560880
mov esi, eax
jmp 0x529a4f
push 1
mov ecx, dword [ebx + 0x5f]
call fcn.0056088c
mov esi, eax
test esi, esi
jne 0x529ac1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x529ab2
push 1
push str._LINEERROR_ID__d__
push 0
mov eax, dword [esp + 0x30]
push eax
call fcn.00507f90
add esp, 0x10
mov ecx, dword [ebx + 0x5f]
call fcn.004f6f5c
test eax, eax
je 0x529a87
mov ecx, dword [ebx + 0x5f]
call fcn.004f6f5c
jmp 0x529a8c
mov eax, 0x6351b0
push eax
push str.Could_not_find_Company__s
push 0
mov eax, dword [esp + 0x30]
push eax
call fcn.00507f90
push str.__LINEERROR_
push 1
mov eax, dword [esp + 0x3c]
push eax
call fcn.00507f90
add esp, 0x1c
mov eax, 1
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov ecx, dword [ebx + 0x63]
call fcn.005608e8
mov ebp, eax
mov ecx, dword [ebx + 0x67]
call fcn.00560910
push 0
push eax
push ebp
push esi
mov ecx, ebx
call fcn.004ee4c8
push 1
mov ecx, dword [ebx + 0x6f]
call fcn.00560934
mov byte [ebx + 0x16], al
push 1
mov ecx, dword [ebx + 0x73]
call fcn.00560964
mov byte [ebx + 0x15], al
mov ecx, dword [ebx + 0x31]
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp eax, 1
je 0x529b95
xor eax, eax
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x529b86
push 1
push str._LINEERROR_ID__d__
push 0
mov eax, dword [esp + 0x30]
push eax
call fcn.00507f90
add esp, 0x10
movzx edx, word [ebp + 0xc]
lea eax, [edx + edx]
add eax, eax
mov ecx, dword [eax + edx*8 + 0x690628]
movzx edx, word [ebp + 0xe]
test edx, edx
jne 0x529b53
mov eax, 0x6351b0
jmp 0x529b5f
lea eax, [edx + edx]
add eax, eax
mov eax, dword [eax + edx*8 + 0x690628]
push eax
push ecx
push str.Could_not_set__s_to__s
push 0
mov eax, dword [esp + 0x34]
push eax
call fcn.00507f90
push str.__LINEERROR_
push 1
mov eax, dword [esp + 0x40]
push eax
call fcn.00507f90
add esp, 0x20
mov eax, 1
add esp, 8
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov eax, dword [ebx + 0x31]
movsx esi, word [eax + 0x13]
add esi, esi
mov ebp, dword [0x65fdf8]
push dword [ebp + esi*8]
mov ecx, ebx
call fcn.004ee444
movsx ebp, word [ebx + 0x13]
add ebp, ebp
mov eax, dword [0x65fdf8]
mov esi, dword [eax + ebp*8]
mov ecx, dword [ebx + 0x63]
call fcn.005608e8
mov ebp, eax
mov ecx, dword [ebx + 0x67]
call fcn.00560910
mov edi, dword [ebx + 0x9b]
push dword [edi]
push eax
push ebp
push esi
mov ecx, ebx
call fcn.004ee4c8
jmp 0x529b0a