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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
mov byte [esp + 0x12], 1
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edx, ecx
and edx, 0x400
or eax, edx
push edi
jne 0x4d8f3a
mov byte [esp + 0x16], 0
and ecx, 0x100
mov byte [esp + 0xf], 1
xor eax, eax
or eax, ecx
jne 0x4d8f50
mov byte [esp + 0xf], 0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x17], 1
mov ebx, dword [ebx]
mov dword [esp + 0x24], ebx
mov ecx, dword [ebx + 0x28]
call fcn.004d342e
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4d970c
nop
mov ebx, dword [eax]
mov dword [esp + 0x18], ebx
cmp dword [ebx], 1
jne 0x4d8fa4
mov eax, dword [ebx + 8]
cmp dword [eax + 4], 0
je 0x4d8fa4
lea eax, [ebx + 0xc]
push eax
push 0x77cf
push esi
call fcn.004de2be
add esp, 0xc
mov eax, dword [ebx + 8]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
test eax, eax
je 0x4d96a9
lea ecx, [ecx]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
cmp byte [ecx + 9], 0
jne 0x4d969a
xor edx, edx
mov edi, 0
cmp dword [ebx], 2
setne dl
dec edx
and edx, ebx
mov ebx, edi
je 0x4d9000
mov eax, ecx
mov edi, 0x2000
mov eax, dword [eax + 0xc]
add eax, dword [edx + 0x40]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [edx + 0x44]
mov dword [esi + 8], eax
add eax, 2
mov dword [esi + 0xc], eax
or edi, dword [esp + 0x38]
or ebx, dword [esp + 0x3c]
mov eax, edi
and eax, 0x1000
mov dword [esp + 0x10], ebx
or eax, 0
je 0x4d903f
mov eax, dword [ecx]
movzx eax, word [eax - 4]
add eax, 4
cmp eax, 0x3ff
jbe 0x4d903f
lea eax, [ecx + 0xc]
push eax
push 0x7dcd
push esi
call fcn.004de2be
add esp, 0xc
jmp 0x4d968e
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4d90aa
cmp dword [eax], 0x15
jne 0x4d90aa
mov ebx, dword [eax + 0x18]
xor eax, eax
mov ecx, ebx
shld eax, ecx, 2
shl ecx, 2
test eax, eax
ja 0x4d90a6
jb 0x4d9064
cmp ecx, 0xffffffff
ja 0x4d90a6
lea eax, [ebx*4 + 0x70]
xor dl, dl
cmp eax, 0x70
jb 0x4d907d
lea ecx, [eax + 0x20]
cmp ecx, eax
jb 0x4d907d
mov eax, ecx
mov dl, 1
xor ebx, ebx
mov dword [esp + 0x20], ebx
test dl, dl
je 0x4d909d
mov ecx, dword [esi + 0x20]
push eax
call 0x3bcd8e
mov ebx, eax
and byte [ebx + 0x18], 0xcf
add ebx, 0x20
mov dword [esp + 0x20], ebx
or byte [ebx + 1], 1
mov byte [ebx], 0x12
jmp 0x4d90e9
xor ebx, ebx
jmp 0x4d90e5
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, 2
je 0x4d90ca
cmp eax, 1
je 0x4d90ca
mov eax, edi
and eax, 0x400
or eax, 0
jne 0x4d90ca
xor cl, cl
jmp 0x4d90cc
mov cl, 1
xor eax, eax
test cl, cl
push 0
setne al
lea ecx, [esi + 0x1c]
push 1
add eax, 0x10
push eax
call fcn.00418cee
mov ebx, eax
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x1c], 0
je 0x4d9181
mov ecx, edi
and ecx, 0x2000
or ecx, 0
je 0x4d9181
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x60], 0x2000
mov dword [esp + 0x64], 0
mov ebx, dword [ebx + 0x28]
lea eax, [esp + 0x80]
mov ecx, esi
push eax
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.004de3fe
push eax
push dword [esp + 0x84]
push 0x7565
push esi
call fcn.004de2be
mov eax, dword [esp + 0x70]
add esp, 0x10
or eax, dword [esp + 0x64]
jne 0x4d911f
mov eax, dword [esp + 0x10]
and edi, 0xffffdfff
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d9175
mov al, byte [eax + 0x60]
mov byte [ebx + 0x48], al
jmp 0x4d9179
mov byte [ebx + 0x48], 0
or byte [ebx + 0x4a], 4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x4d91b0
cmp dword [eax], 0x15
jne 0x4d91b0
cmp dword [ecx], 1
jne 0x4d91b0
lea eax, [edx + 0x20]
push eax
push 0x77d0
push esi
call fcn.004de2be
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, edi
and eax, 0x400
or eax, 0
je 0x4d91e2
push ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], 0
push eax
push 0
push ecx
push edx
push dword [esp + 0x38]
mov ecx, esi
call fcn.004e057e
mov edx, dword [esp + 0x10]
jmp 0x4d937c
mov eax, edi
and eax, 0x1000
or eax, 0
je 0x4d92f5
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], 2
test eax, eax
jne 0x4d922d
lea eax, [edx + 0xc]
push eax
push 0x76cc
push esi
call fcn.004de2be
mov eax, dword [esi + 0x4c]
add esp, 0xc
test eax, eax
je 0x4d925f
mov al, byte [eax + 0x60]
or byte [ebx + 0x4a], 4
mov edx, dword [esp + 0x10]
mov byte [ebx + 0x48], al
jmp 0x4d937c
cmp dword [edx + 0x1c], 0
je 0x4d9270
add eax, 4
push eax
push 0x770c
push esi
call fcn.004de2be
mov eax, dword [esi + 0x4c]
add esp, 0xc
test eax, eax
je 0x4d925f
mov al, byte [eax + 0x60]
or byte [ebx + 0x4a], 4
mov edx, dword [esp + 0x10]
mov byte [ebx + 0x48], al
jmp 0x4d937c
or byte [ebx + 0x4a], 4
mov edx, dword [esp + 0x10]
mov byte [ebx + 0x48], 0
jmp 0x4d937c
mov edx, dword [esp + 0x10]
mov ecx, edi
mov eax, edx
and ecx, 0xbffdc770
and eax, 0xff7ff7f7
mov dword [esp + 0x28], eax
mov eax, ecx
or eax, dword [esp + 0x28]
je 0x4d937c
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov ebx, dword [eax + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
jmp 0x4d92ae
lea eax, [esp + 0x8c]
mov ecx, esi
push eax
push ebx
lea eax, [esp + 0x58]
push eax
call fcn.004de3fe
push eax
push dword [esp + 0x90]
push 0x761a
push esi
call fcn.004de2be
mov eax, dword [esp + 0x60]
add esp, 0x10
or eax, dword [esp + 0x54]
jne 0x4d92ae
mov edx, dword [esp + 0x10]
and edi, 0x4002388f
and edx, 0x800808
jmp 0x4d9374
mov edx, dword [esp + 0x10]
mov ecx, edi
mov eax, edx
mov dword [esp + 0x44], 1
and eax, 0xff7ff7f5
and ecx, 0xbffdd770
mov dword [esp + 0x28], eax
mov eax, ecx
or eax, dword [esp + 0x28]
je 0x4d937c
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov ebx, dword [eax + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x94]
mov ecx, esi
push eax
push ebx
lea eax, [esp + 0x60]
push eax
call fcn.004de3fe
push eax
push dword [esp + 0x98]
push 0x761b
push esi
call fcn.004de2be
mov eax, dword [esp + 0x68]
add esp, 0x10
or eax, dword [esp + 0x5c]
jne 0x4d932f
mov edx, dword [esp + 0x10]
and edi, 0x4002288f
and edx, 0x80080a
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp byte [esp + 0x16], 0
je 0x4d9411
mov eax, edx
mov ecx, edi
and eax, 0x808
and ecx, 0x24002a2
mov dword [esp + 0x28], eax
mov eax, ecx
or eax, dword [esp + 0x28]
je 0x4d9407
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], ecx
mov ebx, dword [eax + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
jmp 0x4d93be
lea eax, [esp + 0x88]
mov ecx, esi
push eax
push ebx
lea eax, [esp + 0x70]
push eax
call fcn.004de3fe
push eax
push dword [esp + 0x8c]
push 0x7781
push esi
call fcn.004de2be
mov eax, dword [esp + 0x78]
add esp, 0x10
or eax, dword [esp + 0x6c]
jne 0x4d93be
mov edx, dword [esp + 0x10]
and edi, 0xfdbffd5d
mov ebx, dword [esp + 0x20]
and edx, 0xfffff7f7
or edi, 0x80
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
je 0x4d951a
mov eax, edx
mov ecx, edi
and eax, 8
and ecx, 0x1002
mov dword [esp + 0x28], eax
mov eax, ecx
or eax, dword [esp + 0x28]
je 0x4d949e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
mov ebx, dword [eax + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
lea ebx, [ebx]
lea eax, [esp + 0x90]
mov ecx, esi
push eax
push ebx
lea eax, [esp + 0x80]
push eax
call fcn.004de3fe
push eax
push dword [esp + 0x94]
push 0x76e3
push esi
call fcn.004de2be
mov eax, dword [esp + 0x88]
add esp, 0x10
or eax, dword [esp + 0x7c]
jne 0x4d944e
mov edx, dword [esp + 0x10]
and edi, 0xffffeffd
mov ebx, dword [esp + 0x20]
and edx, 0xfffffff7
mov dword [esp + 0x10], edx
mov eax, edi
xor ecx, ecx
and eax, 0x2080
cmp eax, 0x2000
jne 0x4d951a
test ecx, ecx
jne 0x4d951a
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x28], eax
mov eax, edi
and eax, 0x2000
mov dword [esp + 0x70], eax
or eax, ecx
je 0x4d9514
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x84]
mov ecx, esi
push eax
push ebx
lea eax, [esp + 0x78]
push eax
call fcn.004de3fe
push eax
push dword [esp + 0x88]
push 0x784b
push esi
call fcn.004de2be
mov eax, dword [esp + 0x80]
add esp, 0x10
or eax, dword [esp + 0x74]
jne 0x4d94d4
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
and edi, 0xffffdfff
and dword [esp + 0x38], edi
mov ecx, edi
and dword [esp + 0x3c], edx
mov eax, edx
and ecx, 0xf
and eax, 0x800008
or ecx, eax
jne 0x4d9546
cmp byte [esp + 0x16], cl
jne 0x4d9543
cmp byte [esp + 0xf], cl
je 0x4d9543
or edi, 4
jmp 0x4d9546
or edi, 1
push dword [ebp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
push ebx
push 0
push dword [esp + 0x50]
push edx
push edi
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
push dword [eax + 0x30]
call fcn.004dfa2e
mov eax, dword [esp + 0x24]
test byte [eax + 0x22], 1
je 0x4d958b
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d9583
mov al, byte [eax + 0x60]
mov byte [ebx + 0x48], al
jmp 0x4d9587
mov byte [ebx + 0x48], 0
or byte [ebx + 0x4a], 4
mov eax, edi
and eax, 0x80
or eax, 0
je 0x4d95cc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, 1
je 0x4d966d
cmp eax, 2
je 0x4d966d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x4d95c5
cmp dword [ecx], 0x15
je 0x4d966d
mov eax, dword [eax + 4]
test eax, eax
jne 0x4d95b3
mov eax, edi
and eax, 0x400
or eax, 0
je 0x4d9673
mov ecx, dword [ebx + 0x50]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4d9608
cmp byte [ecx], 0x29
jne 0x4d9608
mov ecx, dword [ecx + 0x50]
call 0x3dc91e
mov ecx, eax
call 0x3c4d6e
mov ecx, eax
call 0x3c4c8e
mov ecx, dword [esp + 0x28]
jmp 0x4d9617
movzx eax, byte [ecx]
mov al, byte [eax + eax*2 + 0x405210]
shr al, 4
and al, 1
test al, al
je 0x4d9673
cmp byte [ecx], 0x29
jne 0x4d9638
mov ecx, dword [ecx + 0x50]
call 0x3dc91e
mov ecx, eax
call 0x3c4d6e
mov ecx, eax
call 0x3c4cce
mov ecx, eax
mov eax, dword [ecx + 0x90]
shr eax, 7
and al, 1
je 0x4d9673
mov ecx, dword [ebx + 0x50]
call 0x3dc91e
mov ecx, eax
call 0x3db1de
cmp eax, 0xc
je 0x4d966d
mov ecx, dword [ebx + 0x50]
call 0x3dc91e
mov ecx, eax
call 0x3db1de
cmp eax, 0xf
jne 0x4d9673
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test ebx, ebx
je 0x4d968e
cmp byte [esp + 0x17], 0
je 0x4d968e
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004d4afe
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4d8fbe
cmp byte [esp + 0xf], 0
je 0x4d96f9
mov eax, edi
and eax, 0x80
or eax, 0
jne 0x4d96f9
test ecx, ecx
je 0x4d96d7
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4d96d7
cmp dword [eax], 0x15
jne 0x4d96d7
lea eax, [ecx + 0x20]
push eax
push 0x7943
jmp 0x4d96f0
cmp dword [ebx], 1
jne 0x4d96f9
and edi, 0x400
or edi, 0
jne 0x4d96f9
lea eax, [ecx + 0xc]
push eax
push 0x7949
push esi
call fcn.004de2be
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4d8f7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14