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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], 0
mov ebx, dword [edi + 8]
mov dword [esp + 0x20], ebx
test al, 0x20
jne 0x4ed780
cmp dword [edi + 0x34], 0
jne 0x4ed780
test eax, 0x2000000
je 0x4ed750
push 0x11
push ebx
call fcn.0051a320
add esp, 8
mov esi, eax
test dword [ebp + 4], 0x800
je 0x4ed6fa
mov ecx, dword [ebp + 0x14]
push dword [ecx + 0x10]
push str.REUSE_LIST_SUBQUERY__d
push 0
push edi
call fcn.00522260
add esp, 0x10
push dword [ebp + 0x2c]
push dword [ebp + 0x30]
push 0xc
push ebx
call fcn.0051a3d0
push dword [ebp + 0x1c]
push dword [esp + 0x6c]
push 0x71
push ebx
call fcn.0051a3d0
mov edx, dword [ebx + 0x74]
add esp, 0x20
test esi, esi
jns 0x4ed724
lea esi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x4ed73c
pop edi
mov eax, 0x6a4314
pop esi
pop ebp
pop ebx
mov dword [eax + 8], edx
add esp, 0x3c
ret
mov eax, dword [ebx + 0x70]
lea ecx, [esi + esi*4]
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
pop ebx
add esp, 0x3c
ret
or eax, 0x2000000
mov dword [ebp + 4], eax
mov eax, dword [edi + 0x2c]
inc eax
push eax
push 0
push 0x47
mov dword [edi + 0x2c], eax
push ebx
mov dword [ebp + 0x30], eax
call fcn.0051a3d0
inc eax
push 0x11
push ebx
mov dword [ebp + 0x2c], eax
call fcn.0051a320
add esp, 0x18
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov al, byte [ecx]
cmp al, 0xb0
jne 0x4ed790
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x4ed79b
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
jmp 0x4ed7ae
cmp al, 0x8a
jne 0x4ed7a9
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax]
jmp 0x4ed7ae
mov esi, 1
mov edx, dword [esp + 0x58]
mov dword [ebp + 0x1c], edx
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], ecx
cmp dword [ebx + 0x78], ecx
jg 0x4ed7da
push 0
push esi
push edx
push 0x74
push ebx
call fcn.004ceed0
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x4ed805
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 1
push esi
push dword [edi]
call fcn.00506010
add esp, 0xc
mov dword [esp + 0x14], eax
test dword [ebp + 4], 0x800
mov eax, dword [ebp + 0x14]
je 0x4ed9b4
cmp dword [esp + 0x10], 0
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, 0x55b23e
mov dword [esp + 0x18], eax
jne 0x4ed842
mov ecx, str.CORRELATED
push dword [eax + 0x10]
push ecx
push str._sLIST_SUBQUERY__d
push 1
push edi
call fcn.00522260
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp dword [eax], esi
jne 0x4edb88
mov eax, dword [esp + 0x58]
push ebp
push edi
mov byte [esp + 0x38], 0xb
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004b8060
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
push 0
push eax
mov dword [eax + 8], 0
push dword [edi]
call fcn.00513fd0
mov ecx, dword [edi]
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp byte [ecx + 0x57], 0
je 0x4ed8c8
mov dword [esp + 0x18], 1
jmp 0x4ed8df
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
call fcn.005117c0
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ed8f0
push 1
push eax
push dword [edi]
call fcn.004af4d0
add esp, 0xc
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4ed903
push eax
push dword [edi]
call fcn.004f0e00
add esp, 8
cmp dword [esp + 0x18], 0
je 0x4ed932
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4edc88
dec dword [eax]
jne 0x4edc88
push eax
push dword [eax + 0xc]
call fcn.004f0e00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
test esi, esi
jle 0x4edb88
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add esi, 8
add ebx, 0x14
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov edi, edi
push ebp
push dword [esp + 0x28]
call fcn.005264c0
mov esi, dword [esi]
add esp, 8
test dword [eax + 4], 0x100
je 0x4ed96b
push eax
jmp 0x4ed987
test esi, esi
je 0x4ed978
test dword [esi + 4], 0x100
jne 0x4ed986
push eax
push edi
call fcn.004f66b0
add esp, 8
test eax, eax
jne 0x4ed990
push esi
push edi
call fcn.004f66b0
add esp, 8
mov esi, dword [esp + 0x1c]
inc ebp
mov dword [ebx], eax
add esi, 0x14
add ebx, 4
mov dword [esp + 0x1c], esi
cmp ebp, dword [esp + 0x50]
jl 0x4ed950
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
jmp 0x4edb88
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4edb88
push dword [esp + 0x24]
call fcn.004f3870
add esp, 4
mov byte [esp + 0x54], al
cmp al, 0x40
jg 0x4ed9db
mov byte [esp + 0x54], 0x41
jmp 0x4ed9e4
cmp al, 0x45
jne 0x4ed9e4
mov byte [esp + 0x54], 0x43
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4ed9fb
push dword [ebp + 0xc]
push edi
call fcn.004f66b0
add esp, 8
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x4eda0a
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
jmp 0x4eda19
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov esi, dword [edi + eax*4 + 0x98]
mov al, byte [edi + 0x13]
mov dword [esp + 0x18], esi
test al, al
jne 0x4eda30
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x50], edx
jmp 0x4eda43
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4edb54
mov eax, 1
cmp dword [esp + 0x10], 0
mov esi, dword [ecx]
mov dword [esp + 0x2c], esi
je 0x4edaef
mov word [esp + 0x44], ax
mov dword [esp + 0x34], fcn.004b8870
mov dword [esp + 0x38], 0x5144b0
mov dword [esp + 0x48], 0
test esi, esi
je 0x4edaef
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0053a2d0
add esp, 8
cmp word [esp + 0x44], 0
jne 0x4edaef
mov edx, dword [ebx]
cmp byte [edx + 0x57], 0
jne 0x4edae0
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x70]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.004bbca0
mov word [esi], 0xb6
add esp, 0xc
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x2c]
and dword [ebp + 4], 0xfdffffff
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
push esi
push edi
call fcn.004f3f00
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x60]
push 1
push eax
push dword [esp + 0x64]
push 1
push esi
push 0x60
push ebx
call fcn.0051a490
push 1
push esi
push dword [esp + 0x80]
push dword [esp + 0x8c]
push 0x89
push ebx
call fcn.0051a560
mov eax, dword [esp + 0x64]
add esp, 0x40
mov ecx, dword [esp + 0x20]
dec eax
add ecx, 0x14
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x20], ecx
mov eax, 1
jg 0x4eda61
test esi, esi
je 0x4edb6c
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4edb6c
movzx eax, al
mov dword [edi + eax*4 + 0x98], esi
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4edb88
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4edb88
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4edbd8
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x4edba6
push esi
push 0xfffffffffffffff7
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x4edbd8
mov eax, dword [esp + 0x28]
test eax, eax
jns 0x4edbb2
mov eax, dword [ebx + 0x74]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x70]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4edbd1
push 0xfffffffffffffff7
push esi
push eax
push ebx
call fcn.00533cd0
add esp, 0x10
jmp 0x4edbd8
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf7
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4edc88
mov edx, dword [ebx + 0x74]
jns 0x4edbec
lea ecx, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x4edbfb
mov eax, 0x6a4314
jmp 0x4edc04
mov eax, dword [ebx + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebp + 0x30]
cmp dword [ebx + 0x78], ecx
jg 0x4edc24
push 0
push 0
push edx
push 0x43
push ebx
call fcn.004ceed0
add esp, 0x14
jmp 0x4edc53
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0x2c]
dec ecx
mov edx, dword [ebx + 0x74]
jns 0x4edc5f
lea ecx, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x4edc6e
mov ecx, 0x6a4314
jmp 0x4edc77
mov eax, dword [ebx + 0x70]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
lea eax, [edx - 1]
mov dword [ecx + 4], eax
mov byte [edi + 0x13], 0
mov dword [edi + 0x1c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret