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

Disassembly:
sub esp, 0x8c
mov ecx, dword [esp + 0x90]
sub ecx, dword [0x6b2300]
mov eax, 0x60f25deb
imul ecx
sar edx, 6
push ebx
push ebp
mov ebp, dword [esp + 0xac]
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
push edi
or edi, 0xffffffff
movzx ecx, ax
mov edx, edi
xor al, al
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
mov byte [esp + 0x13], al
lea ecx, [ecx]
mov ecx, dword [0x6b22f0]
movzx eax, al
lea ecx, [ecx + eax*4 + 0x48]
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x4c], ecx
test ebp, ebp
je 0x4de8a5
mov ecx, dword [ebp + eax*4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xa0]
mov esi, dword [ecx + eax*4 + 0x89]
mov dword [esp + 0x34], esi
mov dword [esp + 0x5c], esi
test ebp, ebp
je 0x4de8c5
mov ecx, dword [esp + 0x18]
jmp 0x4de8cc
xor ecx, ecx
cmp esi, edi
setne cl
test ecx, ecx
je 0x4dedb2
mov ecx, dword [0x6b2328]
mov edi, esi
shr edi, cl
and edi, dword [0x6b2310]
cmp edx, edi
je 0x4de8ff
lea edx, [esp + 0x34]
push edx
call fcn.004dbd50
mov edi, eax
add esp, 4
test edi, edi
jne 0x4dee1f
and esi, dword [0x6d39a4]
imul esi, esi, 0x1d
add esi, dword [esp + 0x48]
mov ecx, dword [esi + 0x15]
mov eax, dword [esi + 0xd]
mov edx, dword [esi + 0x11]
mov bl, byte [esi + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x19]
mov dword [esp + 0x24], ecx
movzx ecx, word [esi + 7]
mov dword [esp + 0x64], eax
movzx eax, word [esi + 9]
mov dword [esp + 0x2c], edx
mov edx, ecx
or edx, eax
mov dword [esp + 0x38], esi
mov byte [esp + 0x30], bl
test dx, dx
je 0x4de954
mov dword [esp + 0x68], 3
jmp 0x4de964
xor edx, edx
cmp word [esi + 0xb], dx
setne dl
movzx edx, dx
mov dword [esp + 0x68], edx
cmp byte [esp + 0xa8], 0
je 0x4de97b
mov dword [esp + 0x14], 0
jmp 0x4dea46
test ebp, ebp
je 0x4de996
mov dx, word [esi + 0xb]
or dx, cx
or dx, ax
test word [0x6b2314], dx
je 0x4de996
dec dword [esp + 0x18]
mov bp, word [0x6b22e8]
and word [esi + 0xb], bp
movzx eax, word [esi + 0xb]
movzx edx, ax
mov eax, dword [esp + 0xa4]
cmp eax, 0x55
jne 0x4de9c9
and word [esi + 7], bp
movzx eax, word [esi + 7]
and word [esi + 9], bp
movzx ecx, ax
movzx eax, word [esi + 9]
jmp 0x4dea26
movzx ecx, word [esi + 7]
mov edi, dword [0x6b2314]
and edi, ecx
test di, di
je 0x4de9f5
cmp eax, 0x45
je 0x4dee33
mov ax, word [esi + 7]
or ax, 1
and ax, bp
mov word [esi + 7], ax
movzx ecx, ax
movzx eax, word [esi + 9]
mov edi, dword [0x6b2314]
and edi, eax
test di, di
je 0x4dea26
cmp dword [esp + 0xa4], 0x45
je 0x4dee33
mov ax, word [esi + 9]
or ax, 1
and ax, bp
mov word [esi + 9], ax
movzx eax, ax
or eax, ecx
test ax, ax
je 0x4dea37
mov dword [esp + 0x14], 3
jmp 0x4dea46
xor eax, eax
test dx, dx
setne al
movzx ecx, ax
mov dword [esp + 0x14], ecx
cmp byte [esp + 0xac], 0
je 0x4dea67
mov al, byte [esp + 0x13]
push esi
call fcn.004db600
mov edi, eax
add esp, 4
test edi, edi
jne 0x4deaea
cmp byte [esp + 0xb0], 0
je 0x4deaa1
cmp byte [esp + 0x13], 1
je 0x4deaa1
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x79], 1
mov byte [esp + 0x78], 1
mov dword [esp + 0x74], edx
call fcn.00471d40
mov edi, eax
add esp, 4
test edi, edi
jne 0x4dee82
mov eax, dword [esp + 0x68]
cmp ax, 1
jne 0x4deb06
cmp word [esp + 0x14], 0
jne 0x4ded8f
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4dec62
cmp byte [esp + 0x30], 8
sete cl
movzx edx, cl
mov ecx, dword [esp + 0xa0]
push edx
push ecx
call fcn.004dd920
mov edi, eax
add esp, 8
test edi, edi
je 0x4dec62
push 0x234e
push 0
call fcn.00406f10
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
cmp ax, 3
jne 0x4dec56
cmp word [esp + 0x14], ax
je 0x4dec56
or ecx, 0xffffffff
cmp dword [esi], 0x7fffffff
jbe 0x4deb34
mov eax, dword [0x6b22f0]
add dword [eax + 0x50], ecx
js 0x4deeb0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x78], eax
cmp eax, ecx
je 0x4dec56
lea ecx, [ecx]
mov ecx, dword [0x6b2328]
mov ebx, eax
shr eax, cl
and eax, dword [0x6b2310]
cmp dword [esp + 0x80], eax
je 0x4deb92
lea edx, [esp + 0x78]
push edx
mov edi, eax
call fcn.004dbd50
mov edi, eax
add esp, 4
test edi, edi
jne 0x4dee1f
and ebx, dword [0x6d39a4]
imul ebx, ebx, 0x1d
add ebx, dword [esp + 0x8c]
mov ebp, ebx
movzx eax, word [ebp + 5]
mov dword [esp + 0x7c], ebp
cmp word [esp + 0x6c], ax
je 0x4dec06
mov cl, 8
cmp byte [esp + 0x30], cl
jne 0x4debc0
cmp byte [ebp + 4], cl
je 0x4dec06
mov cx, word [ebp + 0xb]
or cx, word [ebp + 9]
mov edx, 0xfffe
or cx, word [ebp + 7]
and cx, dx
movzx ebx, cx
test bx, bx
je 0x4dec06
mov ecx, dword [esp + 0xa0]
movzx eax, ax
imul eax, eax, 0xa9
add eax, dword [0x6b2300]
push 0
call fcn.004dd6d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4deaea
mov eax, dword [ebp + 0x15]
mov dword [esp + 0x78], eax
cmp eax, 0xffffffff
jne 0x4deb60
mov edx, dword [0x6b22f0]
or ecx, eax
cmp dword [esp + 0x80], ecx
je 0x4dec3a
mov eax, dword [esp + 0x88]
shl eax, 4
add word [eax + edx + 0x66], cx
lea eax, [eax + edx + 0x66]
cmp dword [esp + 0x94], ecx
je 0x4dec56
mov eax, dword [esp + 0x98]
shl eax, 4
add word [eax + edx + 0x66], cx
lea eax, [eax + edx + 0x66]
cmp word [esp + 0x14], 0
jne 0x4ded8f
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov dword [esi + 0xd], ecx
mov edx, dword [0x6d39a4]
and edx, dword [esp + 0x34]
push 1
mov dword [eax], edx
mov edx, dword [esp + 0x40]
call fcn.004db7f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4deaea
cmp byte [esp + 0xa8], al
jne 0x4decdf
mov eax, dword [esp + 0x58]
cmp eax, 0xffffffff
jne 0x4decb9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x60]
mov dword [ecx + edx*4 + 0x89], eax
jmp 0x4decdf
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call fcn.004dbfb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4deaea
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov dword [ecx + 0xd], edx
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4ded17
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call fcn.004dbfb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4deaea
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
mov dword [ecx + 0x15], eax
mov dword [ecx + 0x19], edx
jmp 0x4ded1b
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4ded48
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call fcn.004dbfb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4deaea
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x11], edx
jmp 0x4ded97
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x40]
push 0xb
push eax
call fcn.004dcf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4deaea
cmp dword [esp + 0x20], eax
je 0x4deeab
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
jne 0x4ded87
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], eax
jmp 0x4ded97
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x58], edx
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0xb4]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x3c]
or edi, 0xffffffff
jmp 0x4de8b3
cmp byte [esp + 0xa8], 0
je 0x4dedca
mov ecx, dword [esp + 0xa0]
mov dword [ecx + eax*4 + 0x89], edi
mov al, byte [esp + 0x13]
inc al
mov byte [esp + 0x13], al
cmp al, 1
jbe 0x4de880
cmp edx, edi
je 0x4dedf6
mov ecx, dword [esp + 0x44]
mov edx, dword [0x6b22f0]
shl ecx, 4
add word [ecx + edx + 0x66], di
lea eax, [ecx + edx + 0x66]
cmp dword [esp + 0x50], edi
je 0x4dee12
mov eax, dword [esp + 0x54]
mov ecx, dword [0x6b22f0]
shl eax, 4
add word [eax + ecx + 0x66], di
lea eax, [eax + ecx + 0x66]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
push 0x2380
push 0
call fcn.00406f10
add esp, 8
jmp 0x4deaea
movzx edx, word [esi + 7]
movzx eax, word [esi + 9]
movzx ecx, word [0x6b2314]
push edx
push eax
mov eax, dword [esp + 0x2c]
push ecx
movzx edx, bl
push edx
push eax
push str.rm_locks__
push 0x234e
push 0x14b
call fcn.00406f10
push 0
push 1
push 0
push 2
call fcn.00419e90
add esp, 0x30
pop edi
pop esi
pop ebp
mov eax, 0x14b
pop ebx
add esp, 0x8c
ret
push 0x234e
push 0
call fcn.00406f10
push 0
push 1
push 0
push 2
call fcn.00419e90
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
mov eax, dword [0x6b22f0]
mov edx, dword [eax + 0x50]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push 0
push ecx
movzx ecx, byte [esp + 0x1b]
push edx
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [edx + ecx*4 + 0x89]
push eax
push str.rm_locks
push 0x234e
push 0x961
call fcn.00406f10
push 0
push 1
push 0
push 2
call fcn.00419e90
add esp, 0x30
pop edi
pop esi
pop ebp
mov eax, 0x961
pop ebx
add esp, 0x8c
ret