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

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esp, 0x60
add edx, eax
mov dword [esp + 0x6c], edx
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push esi
push edi
sub ebx, eax
xor edi, edi
xor esi, esi
test ebx, ebx
mov ebp, ecx
jle 0x4ed93f
lea eax, [esp + 0x48]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 1]
mov dword [esp + 0x84], eax
mov dl, byte [ecx + eax - 1]
push edx
call fcn.004edbc0
add esp, 4
test al, al
je 0x4ed934
mov eax, dword [esp + 0x80]
test esi, esi
jle 0x4ed920
mov dword [eax], esi
inc edi
add eax, 4
mov ecx, dword [esp + 0x84]
inc edi
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x80], eax
mov esi, dword [esp + 0x84]
cmp esi, ebx
jl 0x4ed8f0
mov dword [esp + edi*4 + 0x48], ebx
inc edi
xor esi, esi
test edi, edi
jle 0x4edbb4
lea edx, [esp + 0x48]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
cmp ebx, esi
jle 0x4edb9a
mov ecx, dword [esp + 0x7c]
mov dl, byte [esi + ecx]
lea eax, [esi + ecx]
push edx
mov dword [esp + 0x88], eax
call fcn.004edbc0
add esp, 4
test al, al
je 0x4edaee
mov eax, dword [esp + 0x78]
mov esi, dword [eax]
add esi, 0xe
mov dword [ebp + 0x38], esi
mov ecx, dword [eax]
mov al, byte [esp + 0xa0]
mov dword [esp + 0x80], ecx
test al, al
je 0x4edab3
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x90]
add eax, edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x60]
push edx
mov ebx, eax
sub esp, 0x10
mov eax, dword [edi]
mov edx, esp
sar ebx, 1
mov dword [edx], ecx
mov ecx, dword [esp + 0xa4]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xac]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
mov ecx, edi
call dword [eax + 0x38]
mov ecx, dword [ebp + 0x68]
mov edx, dword [esp + 0x80]
push ecx
sub esp, 0x10
lea eax, [edx + 1]
mov ecx, esp
mov edx, dword [edi]
mov dword [ecx], eax
mov eax, dword [esp + 0xa4]
inc eax
mov dword [ecx + 4], eax
lea eax, [esi - 2]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xac]
dec eax
mov dword [ecx + 0xc], eax
mov ecx, edi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov al, byte [ecx]
cmp al, 1
lea eax, [edx + 6]
lea ecx, [eax - 4]
jne 0x4eda76
mov dword [esp + 0x18], ecx
lea ecx, [ebx + 2]
mov dword [esp + 0x1c], ecx
lea edx, [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x20], edx
mov edx, ecx
add ebx, 0xfffffffe
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
push edx
mov dword [esp + 0x34], ebx
push 3
lea ecx, [esp + 0x24]
jmp 0x4edaa6
mov dword [esp + 0x30], ecx
lea ecx, [ebx - 2]
mov dword [esp + 0x34], ecx
lea edx, [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x38], edx
mov edx, ecx
add ebx, 2
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [edi]
push edx
mov dword [esp + 0x4c], ebx
push 3
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov al, byte [edx]
cmp al, 1
jne 0x4edae1
lea eax, [ebp + 0x14]
mov edx, dword [esp + 0x98]
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
jmp 0x4edb8e
cmp al, 2
jne 0x4edb8e
lea eax, [ebp + 0x24]
jmp 0x4edac3
mov ecx, dword [esp + 0x78]
sub ebx, esi
lea eax, [ebp + 0xc]
push ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x84], edx
mov edx, dword [edi]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x58]
mov ecx, dword [esp + 0x80]
mov esi, eax
mov al, byte [esp + 0xa0]
add esi, ecx
test al, al
je 0x4edb8e
mov al, byte [esp + 0x9c]
test al, al
je 0x4edb3e
mov edx, dword [ebp + 0x70]
mov dword [esp + 0x80], edx
jmp 0x4edb48
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x60]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x8c]
push ebx
push eax
mov eax, dword [esp + 0x98]
push eax
lea eax, [ebp + 0xc]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, edi
call dword [edx + 0x48]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
mov dword [edx], esi
mov esi, dword [eax]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4ed95e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x30