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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x44]
push esi
mov esi, dword [edi + 8]
mov dword [esp + 0x34], ebx
test esi, esi
jne 0x52000a
cmp dword [edi + 0x74], esi
jne 0x51fffd
mov ecx, dword [edi]
test byte [ecx + 0x44], 8
jne 0x51fffd
mov byte [edi + 0x17], 1
mov ebx, edi
call fcn.004cbf10
mov ebx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x520026
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x52002a
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x520042
cmp byte [ebx + 0xd], 0x52
jne 0x520042
cmp byte [ebx + 0xe], 0x57
mov dword [esp + 0x20], 1
je 0x520046
mov dword [esp + 0x20], ecx
mov eax, esi
call fcn.004cc760
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
lea eax, [eax + edx + 1]
mov dword [esp + 0x38], eax
mov dword [edi + 0x2c], eax
mov eax, esi
mov dword [esp + 0x1c], ecx
call fcn.004cc760
mov ecx, dword [edi + 0x28]
inc dword [edi + 0x2c]
mov dword [esp + 0xc], ecx
inc ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push eax
mov dword [edi + 0x28], ecx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
push edi
call fcn.0051f040
push 0
push 0
push 0
push 0xb
push esi
call fcn.004cc1f0
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x40]
add esp, 0x2c
test eax, eax
je 0x5200d7
mov ecx, dword [esp + 0x30]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esi + 0x88]
push 0
add edx, 2
push edx
push 0
push 0x11
push esi
call fcn.004cc1f0
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0
push eax
push ecx
push 0x6f
push esi
call fcn.004cc1f0
add esp, 0x14
push edi
mov eax, ebx
call fcn.0051f7f0
mov edx, dword [esp + 0x18]
add esp, 4
push 0
push edx
push 0
push 0x46
push esi
mov dword [esp + 0x3c], eax
call fcn.004cc1f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0
push eax
push ecx
push 0x24
push esi
call fcn.004cc1f0
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x24]
add esp, 0x14
push 0
push edx
push eax
push 0x24
push esi
call fcn.004cc1f0
add esp, 0x14
cmp dword [esp + 0x20], 0
je 0x5201b1
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x88]
mov eax, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edi
mov eax, ebx
call fcn.0051e980
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
add esp, 0x14
push 0
push edx
push eax
push 5
push esi
call fcn.004cc1f0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add esp, 0x14
push 0
push ecx
push edx
push 0x24
push esi
call fcn.004cc1f0
add esp, 0x14
mov eax, dword [esi + 0x88]
xor edx, edx
mov dword [esp + 0x48], eax
cmp dword [esp + 0x2c], edx
je 0x520354
cmp byte [ebx + 0xe], 0x52
je 0x5201d7
cmp byte [ebx + 0xd], 0x52
jne 0x520354
xor eax, eax
cmp byte [ebx + 0xd], 0x52
mov dword [esp + 0x30], edx
sete al
cmp byte [ebx + 0xc], 0x56
mov dword [esp + 0x44], eax
jne 0x5202fa
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
je 0x5201fc
mov edx, dword [ecx]
mov eax, dword [ebx + 0x40]
add eax, edx
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x52020d
mov eax, dword [ecx]
jmp 0x52020f
xor eax, eax
mov ebx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x2c]
add ebx, eax
push ecx
mov dword [esp + 0x44], ebx
push edi
xor edx, edx
xor ebx, ebx
call fcn.00503580
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x520274
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
jmp 0x520254
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
add eax, ebx
push eax
push ebx
push edx
push 0x5a
push esi
call fcn.004cc1f0
add esp, 0x14
inc ebx
sub dword [esp + 0x2c], 1
jne 0x520250
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
push ecx
push ebx
push eax
push 0x57
push esi
call fcn.004cc1f0
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x49], 0
mov dword [esp + 0x40], eax
je 0x5202a6
mov eax, dword [esp + 0x30]
mov edx, 0xfffffff7
call fcn.004cccf0
jmp 0x5202c1
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x58]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 - 0x14]
mov ecx, dword [esp + 0x30]
mov byte [eax + 1], 0xf7
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x40]
add eax, 2
push eax
push 0
push eax
push 0x10
push esi
call fcn.004cc1f0
mov edx, dword [esp + 0x24]
add esp, 0x14
dec edx
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
push 0x4e
push esi
call fcn.004cc1f0
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
add esp, 0x14
mov edx, dword [ebp + 0x14]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x24]
neg eax
push ecx
mov ecx, dword [esp + 0x18]
sbb eax, eax
and eax, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push ebx
mov eax, edi
call fcn.0051f700
mov eax, dword [esp + 0x48]
add esp, 0x18
test eax, eax
je 0x520354
mov ecx, dword [esi + 0x88]
jge 0x520339
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x49], 0
je 0x520348
mov eax, 0x6403fc
jmp 0x520351
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
cmp dword [esp + 0x20], 0
jne 0x520377
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push eax
push ecx
push 0
push edx
push edi
mov eax, ebx
call fcn.0051e980
add esp, 0x14
mov eax, dword [esp + 0x14]
push 0
push 1
push eax
push 0x53
push esi
call fcn.004cc1f0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
add esp, 0x14
push 0
push ecx
push edx
push 5
push esi
call fcn.004cc1f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
add esp, 0x14
push 0
push 0
push eax
push ecx
push edx
push ebx
mov eax, edi
call fcn.0051f700
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x40]
add esp, 0x18
test eax, eax
je 0x5203dd
mov ecx, dword [esp + 0x18]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [ebx + 0x24]
push 0
push 0
push edx
push 0x8b
push esi
call fcn.004cc1f0
mov eax, dword [esp + 0x4c]
add esp, 0x14
push 0
push 0
push eax
push 0x42
push esi
call fcn.004cc1f0
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jge 0x520418
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x49], 0
je 0x52042e
mov eax, 0x6403fc
mov dword [eax + 8], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
pop esi
mov dword [eax + 8], ecx
pop ebx
mov esp, ebp
pop ebp
ret