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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x7c]
test ebp, 1
jne 0x52d045
mov edi, 0x627800
mov ecx, 2
mov esi, dword [esp + 0x74]
repe cmpsb byte [esi], byte es:[edi]
jne 0x52d188
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x38], eax
mov edx, dword [eax + 0xe8]
mov edi, dword [ebx + 0xf8]
test edx, edx
je 0x52d086
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
cmp eax, 4
jne 0x52d174
mov eax, dword [esp + 0x38]
test edi, edi
je 0x52d0cb
lea esi, [esp + 0x44]
jmp 0x52d0bd
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp], ebx
call ecx
mov edi, dword [edi + 0x10]
cmp eax, 4
jne 0x52d174
mov eax, dword [esp + 0x38]
test edi, edi
je 0x52d0cb
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x52d090
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x52d0bd
mov ecx, dword [eax + 0x100]
test ecx, ecx
je 0x52d0f3
mov edi, 0x627800
mov ecx, 2
mov esi, dword [esp + 0x74]
repe cmpsb byte [esi], byte es:[edi]
je 0x52d0f3
test ebp, 2
je 0x52d1a1
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], eax
lea edi, [esp + 0x48]
lea esi, [esp + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x78]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0052c1a8
mov eax, dword [edi]
test eax, eax
je 0x52d38c
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x52d38c
mov dword [esp + 4], edx
lea edx, [eax + 0x60]
mov dword [esp], edx
call dword [eax + 0x8c]
test eax, eax
je 0x52d38c
mov eax, dword [eax + 0xc]
cmp edi, esi
je 0x52d308
add edi, 4
test eax, eax
je 0x52d12f
jmp 0x52d180
test eax, eax
jne 0x52d393
mov eax, dword [esp + 0x44]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x78]
test esi, esi
je 0x52d39a
mov eax, dword [esp + 0x78]
mov dword [esp + 0x38], eax
jmp 0x52d04c
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], edx
lea esi, [esp + 0x44]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0052c1a8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x52d427
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
test edx, edx
je 0x52d203
cmp eax, ecx
je 0x52d3e4
test byte [eax + 0x54], 1
je 0x52d3e4
mov eax, dword [ecx + 0x100]
test eax, eax
jle 0x52d293
mov edi, 1
mov dword [esp + 0x2c], ebp
mov ebp, edi
mov edi, dword [esp + 0x74]
lea eax, [ebp + 0xfffffff]
shl eax, 4
add eax, dword [ecx + 0x104]
mov eax, dword [eax]
test eax, eax
je 0x52d283
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0052c1a8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x52d27f
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x52d27f
test byte [eax + 0x54], 1
je 0x52d3a8
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x100], ebp
jg 0x52d3d7
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0052c1a8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x52d3dd
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x52d3dd
test byte [eax + 0x54], 1
jne 0x52d3dd
mov dword [esp + 4], edx
lea edx, [eax + 0x60]
mov dword [esp], edx
call dword [eax + 0x8c]
test eax, eax
je 0x52d3dd
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x52d180
and ebp, 0x200
je 0x52d180
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call fcn.004e1660
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x627a38
mov edx, dword [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + 4], str.unknown_command__
mov dword [esp], ebx
call fcn.004e1460
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x74]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.COMMAND
mov dword [esp + 8], str.LOOKUP
mov dword [esp + 4], 0x6279bf
mov dword [esp], ebx
call fcn.004e1940
mov eax, dword [esp + 0x28]
jmp 0x52d180
xor eax, eax
jmp 0x52d160
xor eax, eax
jmp 0x52d180
mov eax, dword [ebx + 0x64]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x52d04c
mov dword [esp + 4], ecx
lea ecx, [eax + 0x60]
mov dword [esp], ecx
call dword [eax + 0x8c]
test eax, eax
je 0x52d27f
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x100], ebp
jle 0x52d416
test eax, eax
jne 0x52d180
inc ebp
jmp 0x52d220
xor eax, eax
jmp 0x52d310
mov dword [esp + 4], edx
lea edx, [eax + 0x60]
mov dword [esp], edx
call dword [eax + 0x8c]
test eax, eax
je 0x52d427
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x100]
test edx, edx
jle 0x52d41a
test eax, eax
je 0x52d211
jmp 0x52d180
mov ebp, dword [esp + 0x2c]
test eax, eax
jne 0x52d180
jmp 0x52d293
mov ecx, dword [esp + 0x38]
jmp 0x52d203