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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x78]
push ebp
xor ebp, ebp
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], ebp
cmp dword [ebx], ebp
jle 0x529453
mov edx, dword [esp + 0x7c]
lea ecx, [ebx + 8]
mov dword [esp + 0x14], ecx
push esi
jmp 0x529250
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
cmp byte [ecx], 0xb1
jne 0x529262
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x529267
mov eax, 1
cmp eax, edx
jne 0x529421
mov eax, dword [ecx + 0x14]
push 0
push 0x4c
push dword [edi]
mov dword [esp + 0x28], eax
call fcn.00521f00
mov esi, eax
add esp, 0xc
mov ebx, esi
test esi, esi
jne 0x529290
lea esi, [esp + 0x2c]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x5292bd
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0xb4
push dword [edi]
call fcn.00524940
push eax
push dword [edi]
call fcn.00528c50
add esp, 0x18
mov dword [esi + 0x1c], eax
mov byte [esi], 0x8a
mov dword [esi + 4], 0x200
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
inc dword [edi + 0x64]
mov eax, dword [edi + 0x64]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov word [esi + 2], ax
mov eax, dword [edi]
test eax, eax
je 0x52930c
push 0
push 0x50
push eax
call fcn.00521f00
add esp, 0xc
mov edi, eax
jmp 0x52935c
cmp dword [0x5d72d8], 0
je 0x529349
mov eax, dword [0x5e0280]
test eax, eax
je 0x529328
push eax
call dword [0x5d7328]
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x50
call fcn.00505e70
mov eax, dword [0x5e0280]
add esp, 8
test eax, eax
je 0x529358
push eax
call dword [0x5d7330]
jmp 0x529355
push 0x50
call dword [0x5d72f8]
mov dword [esp + 0x14], eax
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x52936d
push 0x50
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x7c]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x5293da
xor eax, eax
lea edx, [esp + 0x2c]
cmp esi, edx
setne al
push eax
push esi
push ecx
call fcn.004e04f0
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov dword [eax + 0x14], 0
test ebx, ebx
je 0x5293f5
test ebp, ebp
je 0x5293f3
mov byte [ebx], 0x87
mov dword [ebx + 0x34], ebp
mov ebp, ebx
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x84]
inc eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
add ecx, 0x14
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [ebx]
jl 0x529250
jmp 0x529441
mov ecx, 0x5a5fec
cmp eax, 1
jg 0x529430
mov ecx, section..rdata
push edx
push ecx
push eax
push str.IN_...__element_has__d_term_s___expected__d
push edi
call fcn.00524240
add esp, 0x14
pop esi
test ebp, ebp
je 0x529453
cmp dword [ebp + 0x34], 0
je 0x529453
or dword [ebp + 4], 0x400
push ebx
push dword [edi]
call fcn.004e95e0
add esp, 8
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x68
ret