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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xf0
mov edi, dword [esp + 0x110]
mov eax, 0xffffffec
cmp edi, 0xa
jb 0x4e00c7
mov esi, dword [esp + 0x10c]
movzx eax, word [esi]
movzx edx, word [esi + 2]
movzx ecx, word [esi + 4]
lea ebx, [eax + edx]
add ebx, ecx
add ebx, 6
sub edi, ebx
jae 0x4df817
mov eax, 0xffffffec
jmp 0x4e00c7
test eax, eax
je 0x4df880
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x60], ebx
mov ebx, dword [ebx]
mov dword [esp + 0xb8], ebx
lea ebx, [esi + 6]
lea ebp, [esi + eax]
add ebp, 6
mov dword [esp + 0x90], ebx
cmp ax, 4
jb 0x4df88a
lea eax, [ebp - 4]
mov dword [esp + 0x8c], eax
mov esi, dword [ebp - 4]
mov dword [esp + 0x84], esi
mov eax, 0xffffffff
cmp esi, 0x1000000
jb 0x4e00c7
shr esi, 0x18
bsr eax, esi
not eax
add eax, 9
mov dword [esp + 0x88], eax
test edx, edx
jne 0x4df8eb
mov eax, 0xffffffb8
jmp 0x4e00c7
mov dword [esp + 0x8c], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x84], ebx
cmp eax, 2
je 0x4df8b6
cmp eax, 3
jne 0x4df8c6
mov dword [esp + 4], ebp
movzx ebp, byte [esi + 8]
shl ebp, 0x10
or ebx, ebp
mov ebp, dword [esp + 4]
movzx esi, byte [esi + 7]
shl esi, 8
add esi, ebx
mov dword [esp + 0x84], esi
movzx esi, byte [ebp - 1]
test esi, esi
je 0x4e00c2
bsr esi, esi
xor esi, 0x1f
shl eax, 3
sub esi, eax
add esi, 9
mov dword [esp + 0x88], esi
test edx, edx
je 0x4df880
lea ebx, [edx + ebp]
mov dword [esp + 0x80], ebp
cmp dx, 4
jb 0x4df924
lea eax, [ebx - 4]
mov dword [esp + 0x7c], eax
mov edx, dword [ebx - 4]
mov dword [esp + 0x74], edx
mov eax, 0xffffffff
cmp edx, 0x1000000
jb 0x4e00c7
shr edx, 0x18
bsr eax, edx
not eax
jmp 0x4df967
mov dword [esp + 0x7c], ebp
movzx eax, byte [ebp]
mov dword [esp + 0x74], eax
cmp edx, 2
je 0x4df943
cmp edx, 3
jne 0x4df950
movzx esi, byte [ebp + 2]
shl esi, 0x10
or eax, esi
movzx esi, byte [ebp + 1]
shl esi, 8
add esi, eax
mov dword [esp + 0x74], esi
movzx eax, byte [ebx - 1]
test eax, eax
je 0x4e00c2
bsr eax, eax
xor eax, 0x1f
shl edx, 3
sub eax, edx
add eax, 9
mov dword [esp + 0x78], eax
mov eax, 0xffffffb8
test ecx, ecx
je 0x4e00c7
lea edx, [ebx + ecx]
mov dword [esp + 0x70], ebx
cmp cx, 4
jb 0x4df9b1
lea eax, [edx - 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [edx - 4]
mov dword [esp + 0x64], ecx
mov eax, 0xffffffff
cmp ecx, 0x1000000
jb 0x4e00c7
shr ecx, 0x18
bsr eax, ecx
not eax
jmp 0x4df9f3
mov dword [esp + 0x6c], ebx
movzx eax, byte [ebx]
mov dword [esp + 0x64], eax
cmp ecx, 2
je 0x4df9cf
cmp ecx, 3
jne 0x4df9dc
movzx esi, byte [ebx + 2]
shl esi, 0x10
or eax, esi
movzx esi, byte [ebx + 1]
shl esi, 8
add esi, eax
mov dword [esp + 0x64], esi
movzx eax, byte [edx - 1]
test eax, eax
je 0x4e00c2
bsr eax, eax
xor eax, 0x1f
shl ecx, 3
sub eax, ecx
add eax, 9
mov dword [esp + 0x68], eax
lea ecx, [esp + 0xa4]
push edi
call fcn.004dd800
add esp, 4
cmp eax, 0xffffff88
ja 0x4e00c7
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x104]
lea esi, [ecx + eax]
add dword [esp + 0x60], 4
lea ebp, [eax + 3]
shr ebp, 2
mov dword [esp + 0x24], ecx
lea eax, [ecx + ebp]
mov dword [esp + 0x40], eax
add eax, ebp
mov dword [esp + 0x28], eax
add ebp, eax
lea ecx, [esp + 0x84]
call fcn.004de740
mov ebx, eax
lea ecx, [esp + 0x74]
call fcn.004de740
mov edi, eax
or edi, ebx
lea ecx, [esp + 0x64]
call fcn.004de740
mov ebx, eax
or ebx, edi
lea ecx, [esp + 0xa4]
call fcn.004de740
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x1c], ecx
or eax, ebx
mov dword [esp + 0xcc], esi
jne 0x4e00e2
lea eax, [esi - 7]
mov dword [esp + 0xe4], eax
cmp ebp, eax
mov ecx, ebp
jae 0x4e00d2
mov eax, dword [esp + 0xb8]
neg eax
and eax, 0x1f
mov dword [esp + 0xa0], eax
mov edi, dword [esp + 0x90]
lea eax, [edi + 4]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
add eax, 4
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
lea eax, [eax + 4]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb4], eax
lea eax, [eax + 4]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc8], ecx
mov ebp, ecx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov dword [esp + 0xd0], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp]
shl ebx, cl
mov edx, dword [esp + 0xa0]
mov ecx, edx
shr ebx, cl
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x34]
shl esi, cl
mov ecx, edx
shr esi, cl
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
shl edi, cl
mov ecx, edx
shr edi, cl
mov ebp, dword [esp + 0x60]
movzx eax, word [ebp + ebx*4]
mov ecx, dword [esp + 0x24]
mov word [ecx], ax
movzx eax, byte [ebp + ebx*4 + 2]
add eax, dword [esp]
mov dword [esp], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
shl eax, cl
mov ecx, edx
shr eax, cl
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp]
shl eax, cl
mov ecx, edx
shr eax, cl
mov dword [esp + 0x18], eax
movzx eax, byte [ebp + ebx*4 + 3]
mov dword [esp + 0xc4], eax
movzx eax, word [ebp + esi*4]
mov ecx, dword [esp + 0xc]
mov word [ecx], ax
movzx ecx, byte [ebp + esi*4 + 2]
add ecx, dword [esp + 4]
movzx eax, byte [ebp + esi*4 + 3]
mov dword [esp + 0xc0], eax
movzx eax, word [ebp + edi*4]
mov edx, dword [esp + 0x3c]
mov word [edx], ax
movzx edx, byte [ebp + edi*4 + 2]
mov ebx, edi
add edx, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
mov dword [esp + 4], ecx
shl esi, cl
mov eax, dword [esp + 0xa0]
mov ecx, eax
shr esi, cl
mov dword [esp + 0x9c], esi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov ecx, edx
shl edi, cl
mov ecx, eax
shr edi, cl
movzx eax, byte [ebp + ebx*4 + 3]
mov dword [esp + 0xbc], eax
mov esi, dword [esp + 0x5c]
movzx ecx, word [ebp + esi*4]
mov edx, dword [esp + 0x20]
mov word [edx], cx
movzx ebx, byte [ebp + esi*4 + 2]
add ebx, dword [esp + 8]
movzx eax, byte [ebp + esi*4 + 3]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
movzx ecx, word [ebp + eax*4]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0xc4]
mov word [edx + esi], cx
movzx ecx, byte [ebp + eax*4 + 2]
add ecx, dword [esp]
mov dword [esp], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], ebx
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp + 0xa0]
shr edx, cl
movzx ecx, byte [ebp + eax*4 + 3]
mov dword [esp + 0xec], ecx
mov esi, dword [esp + 0x9c]
movzx ecx, word [ebp + esi*4]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0xc0]
mov word [eax + ebx], cx
movzx ecx, byte [ebp + esi*4 + 2]
mov dword [esp + 0x94], ecx
movzx ecx, byte [ebp + esi*4 + 3]
mov dword [esp + 0x9c], ecx
movzx ecx, word [ebp + edi*4]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0xbc]
mov word [eax + esi], cx
movzx ecx, byte [ebp + edi*4 + 2]
mov dword [esp + 0x18], ecx
movzx eax, byte [ebp + edi*4 + 3]
mov dword [esp + 0xe8], eax
mov dword [esp + 0x98], edx
movzx eax, word [ebp + edx*4]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov word [ebp + ecx], ax
cmp dword [esp], 0x20
jbe 0x4dfd69
mov dword [esp + 0x54], 3
jmp 0x4dfde9
mov ebx, dword [esp + 0x48]
cmp ebx, dword [esp + 0xe0]
jae 0x4dfdb7
mov edi, ebx
mov ecx, dword [esp + 0xd0]
sub edi, ecx
je 0x4dfddb
mov eax, dword [esp]
mov esi, eax
shr esi, 3
mov ebp, ebx
sub ebp, esi
xor edx, edx
cmp ebp, ecx
mov ebp, dword [esp + 0x20]
setb dl
mov dword [esp + 0x54], edx
cmovb esi, edi
sub ebx, esi
shl esi, 3
sub eax, esi
mov dword [esp], eax
mov dword [esp + 0x48], ebx
mov esi, dword [ebx]
mov dword [esp + 0x38], esi
jmp 0x4dfde9
mov ecx, dword [esp]
mov esi, ecx
shr esi, 3
sub ebx, esi
and ecx, 7
mov dword [esp], ecx
mov dword [esp + 0x48], ebx
mov esi, dword [ebx]
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], 0
jmp 0x4dfde9
xor ecx, ecx
cmp dword [esp], 0x20
sete cl
inc ecx
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 4]
add ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x98]
movzx edx, byte [esi + ecx*4 + 2]
mov dword [esp + 0x94], edx
movzx edx, byte [esi + ecx*4 + 3]
mov dword [esp + 0x98], edx
mov dword [esp + 4], ebx
cmp ebx, 0x20
mov ebx, dword [esp + 0x58]
jbe 0x4dfe98
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 3
add edx, dword [esp + 0x18]
mov dword [esp + 0x18], 3
cmp edx, 0x20
ja 0x4dff5d
cmp ebx, dword [esp + 0xd8]
jae 0x4dfeec
mov edi, ebx
sub edi, ecx
je 0x4dff26
mov esi, edx
shr esi, 3
mov ebp, ebx
sub ebp, esi
xor ecx, ecx
cmp ebp, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
setb cl
mov dword [esp + 0x50], ecx
cmovb esi, edi
sub ebx, esi
shl esi, 3
sub edx, esi
mov esi, dword [ebx]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x14]
jmp 0x4dff65
mov edi, dword [esp + 0x44]
cmp edi, dword [esp + 0xdc]
mov edx, dword [esp + 0x10]
jae 0x4dff06
mov esi, edi
sub esi, eax
je 0x4dff35
mov ecx, dword [esp + 4]
mov edx, ecx
shr edx, 3
mov ebx, edi
sub ebx, edx
cmp ebx, eax
mov eax, 0
mov ebx, dword [esp + 0x58]
setb al
cmovb edx, esi
sub edi, edx
shl edx, 3
sub ecx, edx
mov dword [esp + 4], ecx
mov dword [esp + 0x44], edi
mov edx, dword [edi]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x10]
jmp 0x4dff40
mov ecx, edx
shr ecx, 3
sub ebx, ecx
and edx, 7
mov ecx, dword [ebx]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], 0
jmp 0x4dff65
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 3
sub edi, eax
and ecx, 7
mov dword [esp + 4], ecx
mov dword [esp + 0x44], edi
mov eax, dword [edi]
mov dword [esp + 0x34], eax
xor eax, eax
jmp 0x4dff40
xor ecx, ecx
cmp edx, 0x20
sete cl
inc ecx
mov dword [esp + 0x50], ecx
jmp 0x4dff65
xor eax, eax
cmp dword [esp + 4], 0x20
sete al
inc eax
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
add edx, dword [esp + 0x18]
mov dword [esp + 0x18], 3
cmp edx, 0x20
jbe 0x4dfe4e
mov dword [esp + 0x50], 3
mov dword [esp + 0x58], ebx
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x94]
mov dword [esp + 8], ecx
cmp ecx, 0x20
mov dword [esp + 0x10], edx
jbe 0x4dff8a
mov ebx, dword [esp + 0x3c]
jmp 0x4e000a
cmp esi, dword [esp + 0xd4]
mov ebx, dword [esp + 0x3c]
jae 0x4dffe4
mov edx, dword [esp + 0xb4]
mov edi, esi
sub edi, edx
je 0x4e000a
mov ecx, esi
mov esi, dword [esp + 8]
mov edx, esi
shr edx, 3
mov ebx, ecx
sub ebx, edx
cmp ebx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, 0
setb al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
cmovb edx, edi
lea edi, [edx*8]
sub esi, edi
mov dword [esp + 8], esi
jmp 0x4dfffe
mov ecx, esi
mov esi, dword [esp + 8]
mov edx, esi
shr edx, 3
and esi, 7
mov dword [esp + 8], esi
mov dword [esp + 0x18], 0
sub ecx, edx
mov dword [esp + 0x14], ecx
mov esi, dword [ecx]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0xc4]
add esi, dword [esp + 0xec]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xc]
add esi, dword [esp + 0xc0]
add esi, dword [esp + 0x9c]
mov dword [esp + 0xc], esi
add ebx, dword [esp + 0xbc]
add ebx, dword [esp + 0xe8]
add ebp, dword [esp + 0x5c]
add ebp, dword [esp + 0x98]
or eax, dword [esp + 0x54]
or eax, dword [esp + 0x50]
or eax, dword [esp + 0x18]
jne 0x4e006a
cmp ebp, dword [esp + 0xe4]
jb 0x4dfb89
mov eax, dword [esp]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x40]
jmp 0x4e00f0
mov eax, 0xffffffff
add esp, 0xf0
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x28]
mov ebp, ecx
jmp 0x4e00f0
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x28]
mov ecx, ebp
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xa4], eax
cmp dword [esp + 0x24], edx
ja 0x4df80d
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x28]
ja 0x4df80d
mov eax, 0xffffffec
cmp ebx, ecx
ja 0x4e00c7
mov eax, edx
lea edx, [esp + 0x84]
mov dword [esp + 0x20], ebp
mov ebp, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0xb8]
push edi
mov esi, dword [esp + 0x64]
push esi
push eax
call fcn.004df430
add esp, 0xc
lea edx, [esp + 0x74]
mov ecx, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x30]
call fcn.004df430
add esp, 0xc
lea edx, [esp + 0x64]
mov ecx, ebx
push edi
push esi
push ebp
call fcn.004df430
add esp, 0xc
lea edx, [esp + 0xa4]
mov ecx, dword [esp + 0x20]
push edi
push esi
push dword [esp + 0xd4]
call fcn.004df430
add esp, 0xc
mov ecx, dword [esp + 0x8c]
xor ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
xor eax, 0x20
or eax, ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
xor edx, dword [esp + 0x80]
xor ecx, 0x20
or ecx, edx
mov edx, dword [esp + 0x6c]
xor edx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
xor esi, 0x20
or esi, edx
mov edx, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
xor edi, dword [esp + 0xb0]
xor edx, 0x20
or edx, edi
or edx, esi
or edx, ecx
or edx, eax
mov eax, 0xffffffec
mov ecx, dword [esp + 0x108]
cmovne ecx, eax
mov eax, ecx
jmp 0x4e00c7