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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004e6080
mov esi, dword [eax + 4]
xor ebx, ebx
add esp, 4
cmp esi, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
je 0x4ed3c2
mov edi, esi
push esi
mov dword [esp + 0x1c], edi
call fcn.004d8710
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4ed3cc
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.004d9ef0
cmp edi, ebx
je 0x4ed3e7
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x4ed3fe
mov edx, dword [esp + 0x1c]
push edx
call dword [0x100b0088]
cmp dword [esp + 0x38], ebx
je 0x4ed455
mov esi, dword [esp + 0x34]
push esi
call dword [0x100b0070]
test eax, eax
jne 0x4ed426
mov ecx, esi
call fcn.004deab0
mov esi, dword [esi + 4]
push esi
call fcn.004d9ce0
add esp, 4
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
call fcn.004d9ef0
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
je 0x4ed455
push eax
call fcn.004d7140
add esp, 4
mov eax, dword [ebp + 0x18]
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
je 0x4ed56d
movzx eax, word [eax]
cmp ax, bx
je 0x4ed56d
movzx ecx, ax
push ecx
call fcn.004d9cc0
mov esi, dword [esp + 0x24]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x10], eax
je 0x4ed499
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed49d
xor edi, edi
xor eax, eax
cmp edi, ebx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x218], edx
je 0x4ed4b4
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4ed4c7
push esi
mov dword [esp + 0x34], esi
call fcn.004d8710
add esp, 4
jmp 0x4ed4cd
mov dword [esp + 0x30], ebx
xor eax, eax
mov edi, dword [eax + 0x218]
cmp edi, ebx
je 0x4ed4ef
push edi
mov dword [esp + 0x2c], edi
call fcn.004d8710
add esp, 4
push edi
call fcn.004d8710
add esp, 4
jmp 0x4ed4f7
xor edi, edi
mov dword [esp + 0x28], ebx
xor eax, eax
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx]
mov ecx, dword [ecx + 4]
push edx
push ecx
push eax
call fcn.00484f30
add esp, 0xc
cmp edi, ebx
je 0x4ed518
push edi
call fcn.004d7140
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4ed529
push eax
call fcn.004d7140
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4ed53a
push eax
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4ed559
push esi
mov edi, esi
call fcn.004d8710
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx]
add esp, 4
shr ecx, 1
mov dword [eax + 0x21c], ecx
jmp 0x4ed58c
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx]
xor eax, eax
xor edi, edi
shr ecx, 1
mov dword [eax + 0x21c], ecx
jmp 0x4ed58c
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4ed582
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed586
xor edi, edi
xor eax, eax
mov dword [eax + 0x218], ebx
cmp edi, ebx
je 0x4ed599
push edi
call fcn.004d7140
add esp, 4
lea edx, [esp + 0x3c]
push edx
call fcn.004dec60
mov ecx, dword [eax + 4]
add esp, 4
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], ecx
push edx
mov ecx, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
call fcn.004d9ef0
cmp esi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
je 0x4ed5da
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed5de
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x230], ecx
je 0x4ed5f5
push edi
call fcn.004d7140
add esp, 4
cmp dword [esp + 0x40], ebx
je 0x4ed64c
mov edi, dword [esp + 0x3c]
push edi
call dword [0x100b0070]
test eax, eax
jne 0x4ed61d
mov ecx, edi
call fcn.004dcf50
mov edi, dword [edi + 4]
push edi
call fcn.004d9ce0
add esp, 4
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
call fcn.004d9ef0
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
je 0x4ed64c
push eax
call fcn.004d7140
add esp, 4
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call fcn.004ebb60
mov ecx, dword [eax + 4]
add esp, 4
lea edx, [esp + 0x6c]
mov dword [esp + 0x10], ecx
push edx
mov ecx, eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
call fcn.004d9ef0
cmp esi, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
je 0x4ed695
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed699
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x238], ecx
je 0x4ed6b0
push edi
call fcn.004d7140
add esp, 4
cmp dword [esp + 0x48], ebx
je 0x4ed707
mov edi, dword [esp + 0x44]
push edi
call dword [0x100b0070]
test eax, eax
jne 0x4ed6d8
mov ecx, edi
call fcn.004e8250
mov edi, dword [edi + 4]
push edi
call fcn.004d9ce0
add esp, 4
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
call fcn.004d9ef0
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
je 0x4ed707
push eax
call fcn.004d7140
add esp, 4
cmp esi, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
je 0x4ed720
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed724
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x234], ebx
je 0x4ed737
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4ed748
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed74c
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x23c], ebx
je 0x4ed75f
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4ed770
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed774
xor edi, edi
xor eax, eax
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
sete cl
cmp edi, ebx
mov dword [eax + 0x228], ecx
je 0x4ed78f
push edi
call fcn.004d7140
add esp, 4
cmp dword [ebp + 0xc], ebx
jne 0x4ed865
push ebx
push 0x100b0384
lea ecx, [esp + 0x98]
call fcn.004c4160
mov ecx, eax
call fcn.004f47c0
push eax
push ecx
mov eax, esp
lea edx, [esp + 0x38]
push edx
mov dword [eax], ebx
call fcn.004ea7f0
mov ecx, dword [eax + 4]
add esp, 0x10
lea edx, [esp + 0x7c]
mov dword [esp + 0x14], ecx
push edx
mov ecx, eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
call fcn.004d9ef0
cmp esi, ebx
je 0x4ed7f6
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed7fa
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x22c], ecx
je 0x4ed811
push edi
call fcn.004d7140
add esp, 4
cmp dword [esp + 0x30], ebx
je 0x4ed88d
mov eax, dword [esp + 0x2c]
push eax
mov edi, eax
call dword [0x100b0070]
test eax, eax
jne 0x4ed83b
mov ecx, edi
call fcn.004de3f0
mov edx, dword [edi + 4]
push edx
call fcn.004d9ce0
add esp, 4
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
call fcn.004d9ef0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4ed88d
push eax
jmp 0x4ed885
cmp esi, ebx
je 0x4ed876
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed87a
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x22c], ebx
je 0x4ed88d
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4ed89e
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed8a2
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x240], ebx
je 0x4ed8b5
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4ed8c6
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed8ca
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0xc], ebx
je 0x4ed8da
push edi
call fcn.004d7140
add esp, 4
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4ed9a0
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x100c0094
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ed9a0
test esi, esi
mov dword [esp + 0x14], eax
je 0x4ed919
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
mov ebx, eax
jmp 0x4ed91d
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x8c]
push eax
call edx
test edi, edi
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
je 0x4ed942
push edi
call fcn.004d7140
add esp, 4
test esi, esi
je 0x4ed953
push esi
mov ebx, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed957
xor ebx, ebx
xor eax, eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4ed96b
push eax
mov edi, eax
call fcn.004d8710
add esp, 4
jmp 0x4ed96f
xor edi, edi
xor eax, eax
push eax
call dword [0x100b0088]
test edi, edi
je 0x4ed983
push edi
call fcn.004d7140
add esp, 4
test ebx, ebx
je 0x4ed990
push ebx
call fcn.004d7140
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ed9a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x100ccdf0]
mov ecx, dword [eax + 0x24]
add ecx, 0x18
push ecx
call dword [0x100b0088]
test esi, esi
mov ebx, eax
je 0x4ed9c5
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4ed9c9
xor edi, edi
xor eax, eax
test edi, edi
mov dword [eax + 8], ebx
je 0x4ed9d9
push edi
call fcn.004d7140
add esp, 4
mov edx, dword [ebp + 0x14]
movzx eax, word [edx]
cmp ax, 0x1fe
movzx ebx, ax
jb 0x4ed9ed
mov ebx, 0x1fe
test esi, esi
je 0x4ed9fe
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4eda02
xor edi, edi
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 4]
push ebx
push edx
add eax, 0x14
push eax
call fcn.00484f30
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x4eda25
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4eda36
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4eda3a
xor edi, edi
xor eax, eax
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx]
shr edx, 1
cmp edi, ebx
mov dword [eax + 0x214], edx
je 0x4eda55
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4eda66
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4eda6a
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x220], ebx
je 0x4eda7d
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4eda8e
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4eda92
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x224], ebx
je 0x4edaa5
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
je 0x4edab6
push esi
mov edi, esi
call fcn.004d8710
add esp, 4
jmp 0x4edaba
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x10], ecx
je 0x4edacd
push edi
call fcn.004d7140
add esp, 4
cmp esi, ebx
mov edi, dword [ebp + 8]
mov dword [edi + 4], ebx
mov dword [edi], ebx
je 0x4edaee
mov ebx, esi
push esi
mov dword [esp + 0x2c], ebx
call fcn.004d8710
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x4edafa
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.004d9ef0
test ebx, ebx
je 0x4edb13
push ebx
call fcn.004d7140
add esp, 4
test esi, esi
je 0x4edb6b
mov eax, dword [edi]
push eax
call dword [0x100b0088]
mov esi, dword [esp + 0x1c]
push esi
call dword [0x100b0070]
test eax, eax
jne 0x4edb42
mov ecx, esi
call fcn.004deab0
mov ecx, dword [esi + 4]
push ecx
call fcn.004d9ce0
add esp, 4
lea edx, [esp + 0x74]
xor esi, esi
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
call fcn.004d9ef0
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4edb6b
push eax
call fcn.004d7140
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret