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

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x24], 0
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x440]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
je 0x4deea2
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
cmp byte [eax], 1
jne 0x4deeeb
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
cmp byte [eax], 2
jne 0x4def05
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
cmp byte [eax], 0
je 0x4deef6
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004de280
add esp, 8
test eax, eax
js 0x4deeeb
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
jne 0x4deec5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
cmp byte [eax], 4
jne 0x4def27
push edi
push ebx
call fcn.004df6c0
add esp, 8
test eax, eax
js 0x4deeeb
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
mov al, byte [eax]
test al, al
je 0x4df519
cmp al, 5
jne 0x4deeeb
lea ebp, [edi + 0x78]
push ebp
push ebx
call fcn.004de280
add esp, 8
test eax, eax
js 0x4deeeb
cmp dword [ebp + 4], 0
mov eax, dword [ebp]
ja 0x4deeeb
jb 0x4def58
cmp eax, 0x5f5e100
ja 0x4deeeb
push 0x48
push eax
call fcn.0055b749
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
mov dword [edi + 0x80], esi
test esi, esi
je 0x4deeeb
push 1
push ebx
mov dword [esp + 0x1c], 0
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
movzx edi, byte [eax]
test edi, edi
je 0x4df328
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004de280
add esp, 8
test eax, eax
js 0x4deeeb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x54]
cmp eax, dword [esp + 0x24]
jb 0x4deeeb
mov esi, dword [esp + 0x20]
ja 0x4defd3
cmp dword [ecx + 0x50], esi
jb 0x4deeeb
lea eax, [edi - 0xe]
cmp eax, 0xb
ja case.0x4defdf.22
jmp dword [eax*4 + 0x4df524]
mov esi, dword [esp + 0x30]
cmp dword [esi + 8], 0
jne 0x4deeeb
push 1
push dword [ebp]
call fcn.0055b749
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x4deeeb
push dword [ebp]
push eax
push ebx
call fcn.004de520
add esp, 0xc
test eax, eax
js 0x4deeeb
mov esi, dword [ebp + 4]
xor edi, edi
mov edx, dword [ebp]
xor ecx, ecx
mov dword [esp + 0x14], edi
test esi, esi
jb 0x4df063
ja 0x4df039
test edx, edx
je 0x4df063
mov edi, dword [esp + 0x30]
mov ebx, ecx
mov edi, dword [edi + 8]
cmp byte [edi + ecx], 0
lea eax, [ebx + 1]
cmove eax, ebx
inc ecx
mov ebx, eax
xor eax, eax
cmp eax, esi
jb 0x4df042
ja 0x4df05b
cmp ecx, edx
jb 0x4df042
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x2c]
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
jne 0x4def92
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x14]
test edi, edi
jg 0x4df09d
push esi
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
jmp 0x4df063
mov esi, dword [esp + 0x30]
cmp dword [esi + 0xc], 0
jne 0x4deeeb
push 1
push edi
call fcn.0055b749
mov dword [esi + 0xc], eax
add esp, 8
test eax, eax
je 0x4deeeb
push edi
push eax
push ebx
call fcn.004de520
add esp, 0xc
test eax, eax
js 0x4deeeb
jmp 0x4df063
mov edi, dword [esp + 0x14]
test edi, edi
jle case.0x4defdf.22
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x10], 0
jne 0x4deeeb
push 1
push edi
call fcn.0055b749
mov dword [esi + 0x10], eax
jmp 0x4df0b6
push edi
push dword [esp + 0x34]
push ebx
call fcn.004dfcb0
jmp 0x4df0c9
push 1
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
lea ebx, [esi - 1]
test bl, 1
jne 0x4deeeb
mov ecx, dword [ebp]
xor edx, edx
mov eax, dword [ebp + 4]
shld eax, ecx, 2
shl ecx, 2
cmp edx, eax
jb 0x4deeeb
ja 0x4df146
cmp ebx, ecx
jb 0x4deeeb
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x88], edx
jne 0x4deeeb
push ebx
call fcn.0055b723
mov ecx, dword [esp + 0x14]
mov ebp, eax
add esp, 4
mov dword [ecx + 0x88], ebp
test ebp, ebp
je 0x4deeeb
mov edi, ebx
test ebx, ebx
je 0x4df1ba
nop dword [eax]
cmp edi, 0x10000
mov eax, 0x10000
mov esi, edi
cmova esi, eax
push esi
push dword [esp + 0x30]
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
push esi
push eax
push ebp
call fcn.004692b0
add esp, 0xc
add ebp, esi
sub edi, esi
jne 0x4df180
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x88]
lea ebp, [ecx + 0x78]
xor esi, esi
cmp dword [ebp + 4], esi
jb 0x4df05f
ja 0x4df1d9
cmp dword [ebp], esi
jbe 0x4df05f
mov edx, dword [esp + 0x18]
add edx, 4
mov dword [edx], eax
cmp ebx, 2
jb 0x4deeeb
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x4df1fb
cmp byte [eax + 1], 0
je 0x4df211
sub ebx, 2
add eax, 2
cmp ebx, 2
jae 0x4df1f0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov ecx, eax
sub ebx, 2
sub ecx, dword [edx]
add eax, 2
mov dword [edx - 4], ecx
inc esi
xor ecx, ecx
add edx, 0x48
cmp ecx, dword [ebp + 4]
jb 0x4df1e0
ja 0x4df05f
cmp esi, dword [ebp]
jb 0x4df1e0
jmp 0x4df05f
push 2
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
mov esi, dword [esp + 0x30]
mov al, byte [eax]
mov byte [esp + 0x34], al
cmp dword [esi + 0x14], 0
jne 0x4deeeb
push 1
push dword [ebp]
call fcn.0055b749
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
je 0x4deeeb
cmp byte [esp + 0x34], 0
push dword [ebp]
je 0x4df28f
push 1
push eax
call fcn.00465b30
add esp, 0xc
jmp 0x4df2a1
push eax
push ebx
call fcn.004de520
add esp, 0xc
test eax, eax
js 0x4deeeb
xor esi, esi
cmp dword [ebp + 4], esi
jb 0x4df063
ja 0x4df2b7
cmp dword [ebp], esi
jbe 0x4df063
mov edi, dword [esp + 0x18]
add edi, 0x40
nop
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x14]
cmp byte [esi + eax], 0
je 0x4df300
push 4
push ebx
call fcn.004ddaf0
add esp, 8
test eax, eax
je 0x4deeeb
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [edi], edx
xor eax, eax
inc esi
add edi, 0x48
cmp eax, dword [ebp + 4]
jb 0x4df2c0
ja 0x4df063
cmp esi, dword [ebp]
jb 0x4df2c0
jmp 0x4df063
test esi, esi
je 0x4df063
jmp case.0x4defdf.22
mov esi, dword [esp + 0x10]
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x34], ebp
xor edi, edi
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
cmp dword [esi + 0x7c], eax
jb 0x4df519
ja 0x4df35f
cmp dword [esi + 0x78], eax
jbe 0x4df519
mov edx, dword [esp + 0x18]
add edx, 0x3c
mov ebx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
test eax, eax
je 0x4df379
cmp byte [eax + ecx], 0
jne 0x4df37d
or dword [edx - 0x2c], 0x10
movzx esi, word [edx + 6]
mov ecx, dword [edx - 0x2c]
mov dword [edx], esi
test cl, 0x10
je 0x4df3cf
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0x38]
mov ebp, dword [esp + 0x34]
jae 0x4deeeb
test esi, esi
mov eax, esi
mov esi, 0x81b6
cmove eax, esi
mov esi, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x40]
cmp byte [esi + eax], 0
je 0x4df3c5
or ecx, 8
mov dword [edx - 0x2c], ecx
inc esi
mov dword [esp + 0x2c], esi
jmp 0x4df464
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4df3df
lea eax, [ecx + 1]
jmp 0x4df3f0
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp byte [ecx + ebx], al
sete al
inc ebx
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x4df405
test eax, eax
mov ecx, 0x41ff
mov eax, 0x81b6
cmove ecx, eax
jmp 0x4df425
mov ecx, esi
test eax, eax
je 0x4df427
mov eax, esi
and eax, 0xf000
cmp eax, 0x4000
je 0x4df427
and ecx, 0xffff4fff
or ecx, 0x4000
mov dword [edx], ecx
and ecx, 0xf000
cmp ecx, 0x4000
jne 0x4df461
mov ecx, dword [edx - 0x3c]
cmp ecx, 2
jb 0x4df461
mov eax, dword [edx - 0x38]
cmp byte [ecx + eax - 2], 0x2f
jne 0x4df44e
cmp byte [ecx + eax - 1], 0
je 0x4df461
mov byte [ecx + eax], 0x2f
mov eax, dword [edx - 0x3c]
mov ecx, dword [edx - 0x38]
mov byte [ecx + eax + 1], 0
add dword [edx - 0x3c], 2
or ebx, 0xffffffff
mov dword [edx - 0x30], ebx
test byte [edx + 4], 1
je 0x4df473
and dword [edx], 0xffffff6d
mov esi, dword [edx - 0x2c]
and esi, 0x10
test ebp, ebp
jne 0x4df4c5
test esi, esi
jne 0x4df48a
mov dword [edx - 0x34], 0xffffffff
jmp 0x4df4ef
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add ecx, 0x50
mov ebx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
imul eax, edi, 0x68
add ecx, eax
xor eax, eax
cmp eax, ebp
ja 0x4deeeb
jb 0x4df4b4
cmp edi, ebx
jae 0x4deeeb
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x4df4c1
inc edi
add ecx, 0x68
jmp 0x4df4a0
mov ebp, dword [esp + 0x34]
mov dword [edx - 0x34], edi
test esi, esi
je 0x4df4ef
mov esi, dword [esp + 0x1c]
inc ebp
imul eax, edi, 0x68
xor ecx, ecx
mov dword [esp + 0x34], ebp
cmp ecx, dword [eax + esi + 0x54]
jb 0x4df4ef
ja 0x4df4e8
cmp ebp, dword [eax + esi + 0x50]
jb 0x4df4ef
inc edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, dword [esp + 0x20]
add edx, 0x48
inc ecx
mov dword [esp + 0x20], ecx
cmp eax, dword [esi + 0x7c]
mov eax, dword [esp + 0x2c]
jb 0x4df366
ja 0x4df519
cmp ecx, dword [esi + 0x78]
jb 0x4df366
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret