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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [edx]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
lea ecx, [ecx + ecx*2]
shl ecx, 4
push esi
add ebx, ecx
mov dword [esp + 0x40], eax
mov eax, dword [eax]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [ebx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
push edi
push 0
push 0x1a0
test eax, eax
je 0x4e668c
mov ecx, eax
call fcn.00476a20
mov edi, eax
mov dword [esp + 0x24], edi
jmp 0x4e6697
call fcn.00476590
mov edi, eax
mov dword [esp + 0x24], eax
add esp, 8
test edi, edi
je 0x4e66ae
push 0x1a0
push 0
push edi
call fcn.005cc450
add esp, 0xc
mov dword [ebx + 0x1c], edi
test edi, edi
je 0x4e6d27
or word [ebx + 0xa], 0x10
lea esi, [edi + 0x18]
push 0x180
push 0
push esi
call fcn.005cc450
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov ecx, edi
mov dword [edi], eax
mov byte [edi + 9], 0
push 0x2b
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], esi
call fcn.004e7bf0
mov ecx, dword [esp + 0x44]
add esp, 4
mov edx, edi
call fcn.004e7ea0
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x51], 0
jne 0x4e6d27
mov esi, dword [esp + 0x1c]
or edx, 0xffffffff
or ecx, 0xffffffff
mov dword [esp + 0x30], edx
or edi, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x14]
sub eax, 1
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], esi
js 0x4e697c
mov eax, edx
or eax, ecx
je 0x4e6974
movzx eax, word [esi + 0xc]
test eax, 0x1ff
jne 0x4e68c3
mov ecx, dword [esp + 0x2c]
xorps xmm0, xmm0
push 0
push 0x198
movlpd qword [esp + 0x18], xmm0
call fcn.00476a20
mov edi, eax
add esp, 8
test edi, edi
je 0x4e68a6
or word [esi + 0xa], 0x20
mov eax, 0x400
push 0x180
mov dword [esi + 0x1c], edi
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea esi, [edi + 0x18]
push 0
push esi
movlpd qword [esp + 0x2c], xmm0
call fcn.005cc450
mov ebx, dword [esp + 0x48]
add esp, 0xc
mov edx, dword [esp + 0x38]
mov ecx, edi
mov eax, dword [ebx]
mov dword [edi], eax
mov byte [edi + 9], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], esi
mov edx, dword [edx]
push 0x2c
call fcn.004e7bf0
mov ecx, dword [esp + 0x44]
add esp, 4
mov edx, edi
call fcn.004e7ea0
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], ebx
cmp byte [eax + 0x51], 0
jne 0x4e6871
mov esi, dword [edi + 0x14]
mov edi, dword [edi + 0xc]
test edi, edi
jle 0x4e6871
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
movzx eax, byte [eax]
cmp eax, 0x31
je 0x4e6849
cmp eax, 0x35
jb 0x4e6838
cmp eax, 0x39
jbe 0x4e6849
cmp eax, 0x32
je 0x4e6849
cmp eax, 0x2d
je 0x4e6849
cmp word [esi + 0xc], 0x40
jne 0x4e6867
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x14]
lea ecx, [ecx + 0x1e8]
call fcn.004e8180
mov ecx, dword [esp + 0x20]
or ecx, eax
or ebx, edx
mov dword [esp + 0x20], ecx
add esi, 0x30
sub edi, 1
jne 0x4e6824
jmp 0x4e6879
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
and edx, ecx
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
and ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], edi
jmp 0x4e695a
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], edi
jmp 0x4e695a
movzx eax, word [esi + 0xa]
test al, 8
jne 0x4e6956
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x14]
add ecx, 0x1e8
call fcn.004e8180
mov edi, eax
mov ebx, edx
movzx eax, word [esi + 0xa]
test al, 2
je 0x4e6917
mov esi, dword [esi + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea esi, [esi + esi*2]
mov edx, dword [eax + 0x14]
add esi, esi
lea ecx, [ecx + 0x1e8]
mov edx, dword [edx + esi*8 + 0x14]
call fcn.004e8180
mov esi, dword [esp + 0x38]
or edi, eax
or ebx, edx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
and edx, edi
movzx eax, word [esi + 0xc]
and ecx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
test al, 2
jne 0x4e694e
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edi
jmp 0x4e695a
and dword [esp + 0x10], edi
and dword [esp + 0x20], ebx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
add esi, 0x30
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], eax
test eax, eax
jns 0x4e6754
jmp 0x4e6978
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x1c]
mov eax, 0x200
mov dword [esi + 0x198], edx
or edx, ecx
mov dword [esi + 0x19c], ecx
mov word [ebx + 0xc], ax
je 0x4e6a50
mov eax, dword [esp + 0x3c]
mov byte [eax + 9], 1
cmp dword [esi + 0xc], 2
jne 0x4e6a50
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x14]
mov edi, 0x400
cmp word [eax + 0xc], di
je 0x4e69ca
xor ebx, ebx
test ecx, ecx
cmove ebx, eax
jmp 0x4e69db
mov ebx, dword [eax + 0x1c]
cmp ecx, dword [ebx + 0xc]
jge 0x4e69d9
mov ebx, dword [ebx + 0x14]
add ebx, edx
jmp 0x4e69db
xor ebx, ebx
inc ecx
add edx, 0x30
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edx
test ebx, ebx
je 0x4e6a4c
xor esi, esi
xor edi, edi
nop
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
mov eax, 0x400
add ecx, 0x30
cmp word [ecx + 0xc], ax
je 0x4e6a0e
xor eax, eax
test esi, esi
cmove eax, ecx
jmp 0x4e6a1f
mov eax, dword [ecx + 0x1c]
cmp esi, dword [eax + 0xc]
jge 0x4e6a1d
mov eax, dword [eax + 0x14]
add eax, edi
jmp 0x4e6a1f
xor eax, eax
inc esi
add edi, 0x30
test eax, eax
je 0x4e6a3b
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
push ebx
call fcn.004e6520
add esp, 8
jmp 0x4e69f0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
jmp 0x4e69b3
mov edi, dword [esp + 0x10]
mov eax, edi
or eax, dword [esp + 0x20]
je 0x4e6d27
xor eax, eax
mov edx, 0xffbf
or ecx, 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ecx
nop
test eax, eax
jne 0x4e6bcf
mov ebx, dword [esi + 0xc]
sub ebx, 1
mov edi, dword [esi + 0x14]
js 0x4e6d27
and word [edi + 0xa], dx
mov edx, dword [edi + 0x14]
cmp edx, ecx
je 0x4e6ad5
mov ecx, dword [esp + 0x28]
xor eax, eax
mov esi, dword [ecx + 0x1ec]
test esi, esi
jle 0x4e6ab4
add ecx, 0x1f0
cmp dword [ecx], edx
je 0x4e6ae8
inc eax
add ecx, 4
cmp eax, esi
jl 0x4e6aa8
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
and ecx, dword [esp + 0x10]
and edx, dword [esp + 0x20]
or ecx, edx
jne 0x4e6aff
mov ecx, dword [esp + 0x38]
add edi, 0x30
sub ebx, 1
js 0x4e6d27
mov edx, 0xffbf
jmp 0x4e6a87
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x4e6ac5
mov eax, dword [edi + 0x14]
lea esi, [edi + 0xa]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0xc]
mov eax, 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
test eax, eax
je 0x4e6ba8
mov edi, dword [esp + 0x38]
cmp dword [esi + 0xa], edi
je 0x4e6b3d
mov ecx, 0xffbf
and word [esi], cx
jmp 0x4e6b94
cmp dword [esi + 0x12], ecx
jne 0x4e6b8e
cmp ecx, 0xfffffffe
jne 0x4e6b60
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push edx
mov edx, dword [esi - 0xa]
mov edx, dword [edx + 0xc]
call fcn.004b27d0
add esp, 8
test eax, eax
jne 0x4e6b8e
mov ecx, dword [esi - 0xa]
mov ecx, dword [ecx + 0x10]
call fcn.004ab3b0
mov ecx, dword [esi - 0xa]
movsx edi, al
mov ecx, dword [ecx + 0xc]
call fcn.004ab3b0
movsx eax, al
test edi, edi
je 0x4e6b84
cmp edi, eax
jne 0x4e6b8e
or word [esi], 0x40
mov eax, dword [esp + 0x34]
jmp 0x4e6b94
xor eax, eax
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x50]
add esi, 0x30
sub ebx, 1
mov edx, dword [esp + 0x30]
jns 0x4e6b22
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
inc edx
mov esi, dword [esp + 0x1c]
cmp edx, 2
mov dword [esp + 0x48], edx
mov edx, 0xffbf
jl 0x4e6a70
test eax, eax
je 0x4e6d27
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov esi, dword [esi + 0x14]
xor edx, edx
mov edi, dword [eax + 0xc]
sub edi, 1
js 0x4e6c3d
test byte [esi + 0xa], 0x40
je 0x4e6c1d
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4e6c03
mov ecx, dword [esp + 0x2c]
push 0
push 0
call fcn.004ac6d0
add esp, 8
jmp 0x4e6c05
xor eax, eax
push eax
mov eax, dword [esp + 0x2c]
mov edx, ebx
mov ecx, dword [eax]
call fcn.004ad250
mov ebx, eax
add esp, 4
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
add esi, 0x30
sub edi, 1
jns 0x4e6be2
test edx, edx
je 0x4e6c3d
mov ecx, dword [esp + 0x2c]
push 0
push 0
call fcn.004ac6d0
add esp, 8
mov edi, eax
jmp 0x4e6c3f
xor edi, edi
mov eax, dword [esp + 0x44]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00476a20
mov esi, eax
add esp, 8
test esi, esi
je 0x4e6d07
push 0x34
push 0
push esi
call fcn.005cc450
add esp, 0xc
mov byte [esi], 0x31
or eax, 0xffffffff
mov edx, esi
mov word [esi + 0x22], ax
push 0
push edi
mov edi, dword [esp + 0x4c]
mov ecx, dword [edi]
call fcn.004ac070
mov eax, dword [edi]
add esp, 8
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4e6c9e
push eax
push str.SCopy
push edi
call fcn.00479ca0
add esp, 0xc
mov ecx, dword [esp + 0x4c]
mov edx, esi
push 3
mov eax, dword [ecx + 4]
and eax, 1
or dword [esi + 4], eax
movzx eax, word [ecx + 0x24]
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0x40]
mov ecx, ebx
mov word [esi + 0x24], ax
call fcn.004e5da0
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, eax
mov edx, ebx
push esi
call fcn.004e7020
mov eax, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov ecx, dword [ebp + 8]
add edx, edx
mov esi, dword [esp + 0x60]
add esp, 4
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
movzx eax, word [ecx + esi + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [eax + esi + 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4e6d18
mov eax, dword [esp + 0x44]
mov edx, edi
mov ecx, dword [eax]
call fcn.004ac4d0
test ebx, ebx
je 0x4e6d27
mov ecx, dword [esp + 0x2c]
mov edx, ebx
call fcn.004ad5b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret