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

Disassembly:
mov eax, dword [0x6b22f0]
sub esp, 0x84
cmp dword [eax + 0x50], 0
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
push edi
jne 0x4e1a97
cmp byte [ebx + 0x22], 0
mov byte [esp + 0x13], 1
je 0x4e1a9c
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0xa0]
or esi, 0xffffffff
mov dword [ecx], 0
mov dword [esp + 0x6c], 3
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x12], 0
cmp dword [esp + 0x28], esi
je 0x4e1ae3
mov edx, dword [esp + 0x30]
shl edx, 4
add word [edx + eax + 0x66], si
lea ecx, [edx + eax + 0x66]
mov dword [esp + 0x28], esi
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x3c], esi
je 0x4e1aff
mov ecx, ebp
shl ecx, 4
add word [ecx + eax + 0x66], si
lea ecx, [ecx + eax + 0x66]
mov dword [esp + 0x3c], esi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x4c], esi
je 0x4e1b23
mov edx, edi
shl edx, 4
add word [edx + eax + 0x66], si
lea ecx, [edx + eax + 0x66]
mov dword [esp + 0x4c], esi
mov edx, dword [esp + 0x64]
cmp dword [esp + 0x60], esi
je 0x4e1b3f
mov ecx, edx
shl ecx, 4
add word [ecx + eax + 0x66], si
lea ecx, [ecx + eax + 0x66]
mov dword [esp + 0x60], esi
movzx ecx, byte [ebx + 0x25]
mov esi, dword [ebx]
lea esi, [esi + ecx*4 + 0x89]
lea ecx, [eax + ecx*4 + 0x48]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x38], esi
mov esi, dword [ebx + 0x14]
mov dword [esp + 0x50], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], esi
test ecx, ecx
je 0x4e2000
jmp 0x4e1b80
mov edx, 0xf70
test word [esi + 4], dx
jne 0x4e1eab
xor eax, eax
mov word [ebx + 0x26], ax
mov cx, word [esi + 4]
mov eax, dword [esi]
and cx, 3
cmp byte [esp + 0x13], 0
movzx ebp, cx
mov dword [esp + 0x18], eax
je 0x4e1bbe
cmp eax, 0x7fffffff
jbe 0x4e1bbe
cmp bp, 1
je 0x4e1eab
cmp byte [esi + 6], 8
jne 0x4e1c0d
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 2
lea ecx, [esp + 0x2c]
push 8
push ecx
call fcn.004dcf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e1f54
cmp dword [esp + 0x14], 8
jne 0x4e1c0d
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.004db040
mov eax, 0x100
add esp, 8
test word [ebx + 0x26], ax
jne 0x4e1ee3
cmp byte [ebx + 0x25], 0
jne 0x4e1c25
cmp bp, 1
jne 0x4e1c25
cmp dword [esp + 0x6c], 4
mov eax, 8
jne 0x4e1c2a
mov eax, 0xc
lea ecx, [esp + 0x14]
push ecx
movzx ecx, byte [esi + 6]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea edx, [esp + 0x30]
push edx
call fcn.004dcf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e1f54
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e1c63
mov byte [esp + 0x12], 1
jmp 0x4e1eab
mov ebp, dword [esp + 0x24]
cmp eax, 4
jne 0x4e1d02
mov ecx, dword [ebx]
sub ecx, dword [0x6b2300]
mov eax, 0x60f25deb
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebp + 5], ax
xor ecx, ecx
mov word [ebp + 7], cx
xor edx, edx
mov word [ebp + 9], dx
lea ecx, [esp + 0x14]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push eax
mov word [ebp + 0xb], ax
lea eax, [esp + 0x50]
push 0xb
push eax
mov dword [ebp + 0x15], 0xffffffff
call fcn.004dcf50
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e1f54
cmp dword [esp + 0x14], eax
jne 0x4e1ce0
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0x19], ecx
mov dword [ebp + 0x11], 0xffffffff
jmp 0x4e1cf8
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x11], edx
mov dword [eax + 0x15], ecx
mov edx, dword [eax + 0x19]
mov dword [ebp + 0x19], edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
push edx
push eax
push esi
lea ecx, [esp + 0x50]
push ecx
push ebx
lea edi, [esp + 0x34]
call fcn.004e1300
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e1f54
movzx eax, word [ebx + 0x26]
mov edx, 0x2000
cmp ax, dx
jne 0x4e1e22
mov ax, word [0x6b22e8]
mov esi, dword [ebp + 0x11]
mov ebx, dword [ebp + 0x15]
mov ecx, dword [esp + 0x98]
and word [ebp + 0xb], ax
mov al, byte [ecx + 0x25]
push ebp
call fcn.004db600
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e1f54
or eax, 0xffffffff
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x70], esi
cmp esi, eax
je 0x4e1da6
lea edx, [esp + 0x70]
push edx
call fcn.004dbfb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e1f54
mov eax, dword [esp + 0x74]
mov dword [eax + 0x15], ebx
mov dword [esp + 0x70], ebx
cmp ebx, 0xffffffff
je 0x4e1dcd
lea ecx, [esp + 0x70]
push ecx
call fcn.004dbfb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e1f54
mov edx, dword [esp + 0x74]
mov dword [edx + 0x11], esi
lea eax, [esp + 0x70]
push eax
call fcn.004db8d0
mov ecx, dword [ebp + 0xd]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov dword [edx], ecx
mov ecx, dword [eax]
mov dword [ebp + 0xd], ecx
mov edx, dword [0x6d39a4]
and edx, dword [esp + 0x24]
push 1
mov dword [eax], edx
mov edx, dword [esp + 0x30]
call fcn.004db7f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e1f54
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0x68]
mov byte [esp + 0x12], 1
jmp 0x4e1eab
cmp byte [esi + 6], 2
jne 0x4e1e94
test al, 0x30
je 0x4e1e94
mov ebp, dword [ebp + 0xd]
or eax, 0xffffffff
mov dword [esp + 0x70], ebp
cmp ebp, eax
je 0x4e1e94
mov dword [esp + 0x8c], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x80], 0
call fcn.004dbfb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e1f54
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x18]
jne 0x4e1e87
cmp byte [eax + 4], 8
jne 0x4e1e87
lea edx, [esp + 0x70]
push edx
push ebx
call fcn.004db040
add esp, 8
lea eax, [esp + 0x70]
push eax
call fcn.004db8d0
add esp, 4
mov cx, word [ebx + 0x26]
or word [esi + 4], cx
mov edx, 0x142
test word [ebx + 0x26], dx
jne 0x4e1fd0
mov eax, dword [esp + 0x1c]
dec eax
add esi, 9
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], esi
test eax, eax
jne 0x4e1b80
cmp byte [esp + 0x12], 0
mov eax, dword [0x6b22f0]
je 0x4e1ff4
mov dword [esp + 0x6c], 4
or esi, 0xffffffff
jmp 0x4e1ac4
mov eax, dword [0x6b22f0]
or edx, 0xffffffff
cmp dword [esp + 0x28], edx
je 0x4e1f01
mov ecx, dword [esp + 0x30]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x3c], edx
je 0x4e1f17
mov ecx, dword [esp + 0x40]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x4c], edx
je 0x4e1f2d
mov ecx, dword [esp + 0x54]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x60], edx
je 0x4e2077
mov ecx, dword [esp + 0x64]
pop edi
shl ecx, 4
add word [ecx + eax + 0x66], dx
pop esi
lea eax, [ecx + eax + 0x66]
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
mov eax, dword [0x6b22f0]
or edx, 0xffffffff
cmp dword [esp + 0x28], edx
je 0x4e1f72
mov ecx, dword [esp + 0x30]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x3c], edx
je 0x4e1f88
mov ecx, dword [esp + 0x40]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x4c], edx
je 0x4e1f9e
mov ecx, dword [esp + 0x54]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x60], edx
je 0x4e1fb4
mov ecx, dword [esp + 0x64]
shl ecx, 4
add word [ecx + eax + 0x66], dx
lea eax, [ecx + eax + 0x66]
push 0x233e
push 0
call fcn.00406f10
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
lea edx, [esp + 0x20]
push edx
call fcn.004db8d0
lea eax, [esp + 0x48]
push eax
call fcn.004db8d0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
or esi, 0xffffffff
cmp dword [esp + 0x28], esi
je 0x4e2019
mov ecx, dword [esp + 0x30]
shl ecx, 4
add word [ecx + eax + 0x66], si
lea ecx, [ecx + eax + 0x66]
cmp dword [esp + 0x3c], esi
je 0x4e202b
shl ebp, 4
add word [eax + ebp + 0x66], si
lea ecx, [eax + ebp + 0x66]
cmp dword [esp + 0x4c], esi
je 0x4e203d
shl edi, 4
add word [edi + eax + 0x66], si
lea ecx, [edi + eax + 0x66]
cmp dword [esp + 0x60], esi
je 0x4e204f
shl edx, 4
add word [edx + eax + 0x66], si
lea eax, [edx + eax + 0x66]
mov ecx, dword [esp + 0xa0]
cmp dword [ecx], 0
je 0x4e2071
pop edi
pop esi
mov edx, 0x20
pop ebp
mov word [ebx + 0x26], dx
xor eax, eax
pop ebx
add esp, 0x84
ret
xor eax, eax
mov word [ebx + 0x26], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret