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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
movzx ecx, word [ebx + 0x42]
mov dword [esp + 0x28], eax
mov eax, ecx
and eax, 1
mov dword [esp + 4], ebx
shl eax, 0x10
and ecx, 0xfe00
push ebp
add eax, ecx
xor ebp, ebp
push esi
mov dword [esp + 0x14], eax
mov eax, dword [0x56f1f8]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
test eax, eax
je 0x4e7a6e
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e7a6e
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
call edi
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x44]
add ecx, 0x60
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
cmp dword [ecx], eax
jae 0x4e8018
mov eax, dword [ebx + 0x48]
lea edi, [ecx + 8]
mov dword [esp + 0x40], eax
mov esi, 4
nop dword [eax + eax]
mov ebx, dword [edi]
mov eax, dword [0x56f1f8]
test eax, eax
je 0x4e7ae4
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e7ae4
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [esp + 0x14], ebx
jbe 0x4e7b99
mov eax, dword [esp + 0x10]
push 1
push esi
push dword [esp + 0x40]
push dword [esp + 0x3c]
push eax
call fcn.004e7950
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4e7b84
or ecx, 0xffffffff
cmp esi, 4
cmove ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [0x56f1f8]
test ecx, ecx
je 0x4e7b59
push 0x28a
call ecx
add esp, 4
test eax, eax
je 0x4e7b59
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x2b], 0
jne 0x4e7b9d
mov eax, dword [ebx + 4]
push 9
push 1
push esi
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [ebx + 0x74]
lea eax, [esi + 8]
add esp, 0x10
btr ecx, eax
mov dword [ebx + 0x74], ecx
jmp 0x4e7b9d
cmp ebp, 5
jne 0x4e80da
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x10]
inc esi
add edi, 4
lea eax, [esi - 3]
cmp eax, 5
jl 0x4e7aa0
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
cmp dword [ecx], edi
jae 0x4e8001
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx]
push eax
push ebx
call fcn.004e9e50
add esp, 0xc
mov ebp, eax
cmp dword [esp + 0x20], 0
je 0x4e8001
push 1
push 3
push dword [esp + 0x40]
push dword [esp + 0x3c]
push ebx
call fcn.004e7950
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4e8001
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [esp + 0x54], eax
mov dword [ecx + 0x20], edi
mov eax, dword [0x56f1f8]
test eax, eax
je 0x4e7c49
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e7c49
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x84]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0xc4]
mov ecx, dword [ebx + 8]
sar edx, 2
and edx, 3
mov dword [esp + 0xc4], edx
je 0x4e7c80
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4e7d41
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push 0
push ebp
push 0
push dword [esp + 0x4c]
call fcn.004fc310
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x4e7cb5
push 0
push 0x27
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebx + 4]
add esp, 0xc
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4e7d45
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x4c]
cmp ebx, ebp
jg 0x4e7df9
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x58]
jl 0x4e7cef
cmp edi, esi
jae 0x4e7df9
mov eax, dword [esp + 0x18]
push 0
push eax
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 0x44]
call fcn.004fc310
add eax, edi
adc edx, ebx
add eax, 0x10000
adc edx, 0
cmp edx, ebp
jg 0x4e7ddc
jl 0x4e7d22
cmp eax, esi
jae 0x4e7ddc
push 0x104d3
call fcn.0049c060
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4e7df9
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4e7d5f
push 0
push 0x25
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
test ebx, ebx
mov ebx, dword [esp + 0x10]
jne 0x4e7fdc
push ebx
call fcn.004e9230
add esp, 4
mov ecx, dword [eax + 0x10]
cmp edi, ecx
jne 0x4e7fc7
mov ecx, dword [ebx + 4]
mov eax, ebp
mul dword [ebx + 0x48]
mov esi, eax
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x10]
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4e7fe0
mov edx, dword [esp + 0xc4]
mov ecx, dword [ebx + 4]
test edx, edx
je 0x4e7fb4
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4e7fe0
mov eax, dword [esp + 0x2c]
push ebx
mov dword [eax], edi
call fcn.0048df00
add esp, 4
jmp 0x4e7fe0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4e7df9
lea edx, [esp + 0x48]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x20]
or edx, 0xffffffff
mov dword [esp + 0x24], edx
mov eax, dword [esi]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 4]
sub eax, 1
mov dword [esp + 0x28], eax
js 0x4e7e87
lea eax, [eax + eax*4]
lea eax, [eax + 5]
lea esi, [esi + eax*4]
mov eax, dword [esp + 0x28]
nop dword [eax + eax]
mov ecx, dword [esi - 0xc]
mov ebx, dword [esi]
cmp ecx, ebx
jge 0x4e7e7b
mov eax, dword [esi - 8]
mov ebp, dword [esi - 4]
lea edx, [eax + ecx*2]
movzx edi, word [edx]
mov eax, dword [ebp + edi*4]
cmp eax, dword [esp + 0x50]
ja 0x4e7e60
inc ecx
add edx, 2
mov dword [esi - 0xc], ecx
cmp ecx, ebx
jl 0x4e7e42
mov edx, dword [esp + 0x24]
jmp 0x4e7e77
mov edx, dword [esp + 0x24]
cmp eax, edx
jae 0x4e7e77
mov edx, eax
mov eax, edi
add eax, dword [esi + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
dec eax
sub esi, 0x14
mov dword [esp + 0x28], eax
test eax, eax
jns 0x4e7e30
mov eax, dword [esp + 0x20]
mov dword [eax], edx
cmp edx, 0xffffffff
je 0x4e7fa2
mov eax, dword [0x56f1f8]
test eax, eax
je 0x4e7ee5
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e7ee1
mov dword [esp + 0x98], eax
lea eax, [esp + 0x90]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xb4]
cmp dword [eax + 0x128], 0
jne 0x4e7f8a
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x54]
jbe 0x4e7f10
cmp ecx, dword [esp + 0x14]
ja 0x4e7f10
cmp edx, dword [esp + 0x40]
jbe 0x4e7f19
nop
mov ecx, dword [esp + 0x44]
jmp 0x4e7e01
mov ebx, dword [esp + 0x18]
dec ecx
mov ebp, dword [esp + 0x10]
lea eax, [ebx + 0x18]
mov esi, dword [ebp + 8]
mul ecx
mov edi, dword [esi]
add eax, 0x38
adc edx, 0
push edx
push eax
mov eax, dword [edi + 8]
push ebx
push dword [esp + 0x40]
push esi
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4e7d3d
mov esi, dword [ebp + 4]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push ebx
mov edi, dword [esi]
dec eax
push ebp
push ebx
push eax
call fcn.004fc310
push edx
push eax
mov eax, dword [edi + 0xc]
push ebp
push dword [esp + 0x40]
push esi
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4e7fab
mov ecx, dword [esp + 0x44]
jmp 0x4e7e01
xor ebx, ebx
cmp byte [eax + 0x57], bl
sete bl
lea ebx, [ebx*2 + 7]
mov dword [esp + 0x1c], ebx
jmp 0x4e7d3d
mov ebx, dword [esp + 0x1c]
jmp 0x4e7d3d
mov edi, dword [esp + 0x14]
jmp 0x4e7d45
mov eax, dword [esp + 0x2c]
xor ebp, ebp
push ebx
mov dword [eax], edi
call fcn.0048df00
add esp, 4
jmp 0x4e7fe0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
push ebx
mov dword [eax], edi
call fcn.0048df00
add esp, 4
jmp 0x4e7fe0
mov ebp, dword [esp + 0x1c]
cmp byte [ebx + 0x2b], 0
jne 0x4e8001
mov eax, dword [ebx + 4]
push 9
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [ebx + 0x74], 0xfffff7ff
cmp ebp, 5
jne 0x4e800a
xor ebp, ebp
jmp 0x4e8012
test ebp, ebp
jne 0x4e80da
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov esi, dword [esp + 0xb8]
test esi, esi
je 0x4e80da
mov eax, dword [0x56f1f8]
test eax, eax
je 0x4e806e
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x4e806e
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x9c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
call edi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x44]
jae 0x4e8080
mov ebp, 5
jmp 0x4e80da
cmp esi, 2
jl 0x4e80da
lea eax, [esp + 0x34]
push eax
push 4
call fcn.004511a0
push 4
push 4
push dword [esp + 0x48]
push dword [esp + 0x44]
push ebx
call fcn.004e7950
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x4e80da
cmp esi, 3
jne 0x4e80cd
push dword [esp + 0x34]
push ebx
call fcn.004ea460
mov eax, dword [ebx + 8]
push ebp
push ebp
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x14
mov ebp, eax
push 4
push 4
push ebx
call fcn.004eac50
add esp, 0xc
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x78], 0
je 0x4e8148
cmp dword [0x56f0f8], 0
je 0x4e813b
mov eax, dword [0x574ff8]
test eax, eax
je 0x4e8108
push eax
call dword [0x56f148]
add esp, 4
mov esi, dword [esp + 0x20]
push esi
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push esi
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x4e8148
push eax
call dword [0x56f150]
jmp 0x4e8145
push dword [esp + 0x20]
call dword [0x56f11c]
add esp, 4
mov ecx, dword [esp + 0xa8]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb4f7
add esp, 0x9c
ret