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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov cl, byte [ecx + eax]
mov byte [esp + 0xf], cl
mov dword [esi + 8], edx
test edi, edi
je 0x4d393f
movzx eax, cl
mov word [edi], ax
movzx edx, cl
lea eax, [edx - 2]
cmp eax, 0xfd
ja case.0x4d3957.6
movzx eax, byte [eax + 0x4d3803]
jmp dword [eax*4 + 0x4d377f]
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp eax, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov cl, byte [ecx + eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov eax, dword [ebp + 0x10]
inc dword [esi + 8]
mov dword [eax], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
lea eax, [ecx + 2]
cmp eax, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov cx, word [ecx + eax]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
add dword [esi + 8], 2
mov dword [eax], 2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov al, byte [ecx + eax]
mov dword [esi + 8], edx
movsx cx, al
mov eax, dword [ebp + 0xc]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
test edi, edi
je 0x4d47c4
mov eax, 2
mov word [edi], ax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
jmp 0x4d39d8
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
mov word [eax], cx
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
test edi, edi
je 0x4d47c4
mov eax, 0xb
mov word [edi], ax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
test edi, edi
je 0x4d47c4
mov eax, 3
mov word [edi], ax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov al, byte [ecx + eax]
movsx ecx, al
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], edx
mov dword [eax], ecx
jmp 0x4d3a52
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
movzx eax, word [ecx + eax]
movsx ecx, ax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], edx
mov dword [eax], ecx
jmp 0x4d3a52
mov ecx, dword [esi + 8]
lea eax, [ecx + 4]
cmp eax, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov ecx, dword [ecx + eax]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add dword [esi + 8], 4
mov dword [eax], 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
lea eax, [edx + 8]
cmp eax, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov ecx, dword [edx + eax]
mov edx, dword [edx + eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x10]
add dword [esi + 8], 8
mov dword [eax], 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4d3b32
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
test edi, edi
je 0x4d47c4
mov eax, 8
mov word [edi], ax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 8]
lea ecx, [ebx + 4]
cmp ecx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov ebx, dword [ebx + eax]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], ecx
mov eax, dword [eax]
test eax, eax
je 0x4d3b84
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 8]
add eax, ebx
cmp eax, dword [esi + 4]
ja 0x4d4815
lea eax, [ebx + 1]
test eax, eax
je 0x4d3ba8
push eax
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esi + 8]
add ecx, dword [esi]
push ebx
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.004d634d
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
mov byte [eax + ebx], 0
add dword [esi + 8], ebx
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [ebp + 0xc]
push dword [esp + 0x14]
push 0
mov dword [ecx], eax
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4d3b32
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
mov al, byte [ecx + eax]
mov byte [esp + 0xf], al
mov dword [esi + 8], edx
mov eax, dword [ebx]
test eax, eax
je 0x4d3c1c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
movzx ecx, byte [esp + 0xf]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esp + 0x1c], ecx
cmp eax, dword [esi + 4]
ja 0x4d4815
lea eax, [ecx + 1]
push eax
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esi + 8]
mov ebx, eax
push dword [esp + 0x1c]
add ecx, dword [esi]
push ecx
push ebx
call fcn.004d634d
mov eax, dword [esp + 0x28]
add esp, 0xc
mov byte [ebx + eax], 0
add dword [esi + 8], eax
test ebx, ebx
je 0x4d3c72
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4d3c74
xor eax, eax
mov edx, eax
mov ecx, ebx
call fcn.004d36ac
mov ecx, dword [ebp + 0xc]
push ebx
push 0
mov dword [ecx], eax
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4d3b32
mov ebx, dword [esi + 8]
lea ecx, [ebx + 4]
cmp ecx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + eax]
mov dword [esi + 8], ecx
mov eax, dword [edi]
test eax, eax
je 0x4d3cc3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [esi + 8]
add eax, ebx
cmp eax, dword [esi + 4]
ja 0x4d4815
lea eax, [ebx + 1]
test eax, eax
jne 0x4d3cdc
xor edi, edi
jmp 0x4d3ced
push eax
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov ecx, dword [esi + 8]
add ecx, dword [esi]
push ebx
push ecx
push edi
call fcn.004d634d
mov byte [edi + ebx], 0
add esp, 0xc
add dword [esi + 8], ebx
test edi, edi
je 0x4d3d11
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4d3d13
xor eax, eax
mov edx, eax
mov ecx, edi
call fcn.004d36ac
mov ecx, dword [ebp + 0xc]
push edi
push 0
mov dword [ecx], eax
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x4d3957.9
mov eax, 9
mov word [edi], ax
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
lea edx, [edi + 0x10]
cmp edx, eax
ja 0x4d4815
mov ebx, dword [esi]
mov eax, dword [ebx + edi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + edi + 8]
mov edi, dword [ebx + edi + 0xc]
mov ebx, dword [esp + 0x18]
mov dword [esi + 8], edx
add edx, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x20], edi
cmp edx, eax
ja 0x4d4815
mov dword [esi + 8], edx
cmp cl, 0xfa
jne 0x4d3de4
lea ecx, [edx + 0x10]
cmp ecx, eax
ja 0x4d4815
mov edi, dword [esi]
mov eax, dword [edi + edx]
mov dword [esp + 0x40], eax
mov eax, dword [edi + edx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [edi + edx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [edi + edx + 0xc]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
mov dword [esi + 8], ecx
mov ecx, esi
push eax
call fcn.004d3626
test al, al
je 0x4d4815
mov edi, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4d3dfc
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
jmp 0x4d4011
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
call fcn.004d3564
test eax, eax
js 0x4d4815
mov edi, dword [esp + 0x10]
push edi
mov eax, dword [edi]
call dword [eax + 4]
cmp byte [esp + 0xf], 0xfa
mov eax, dword [ebp + 0xc]
jne 0x4d400f
mov eax, dword [eax]
and dword [esp + 0x28], 0x7fffffff
mov ecx, dword [edi]
mov dword [esp + 0x1c], eax
push edi
cmp eax, edi
jne 0x4d3e5f
call dword [ecx + 8]
jmp 0x4d4011
call dword [ecx + 4]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
xor eax, eax
mov dword [esp + 0x24], ecx
cmp dword [ecx + 0x10], eax
jbe 0x4d3f09
mov edx, dword [esp + 0x28]
add ecx, 0x24
lea ebx, [ebx]
mov ebx, dword [ecx]
lea ecx, [ecx + 4]
inc eax
cmp dword [ebx + 4], edx
je 0x4d3e99
mov ebx, dword [esp + 0x24]
cmp eax, dword [ebx + 0x10]
jb 0x4d3e83
jmp 0x4d3f09
mov ebx, dword [ebx]
add ebx, dword [esp + 0x18]
push ebx
mov eax, dword [ebx]
call dword [eax + 4]
cmp dword [esp + 0x1c], 0
je 0x4d3fa8
mov edx, 0x55ae24
lea ecx, [esp + 0x40]
call fcn.004d53de
test al, al
jne 0x4d3fa8
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x40]
call fcn.004d350a
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x4d3ee2
mov eax, dword [ebx]
push ebx
jmp 0x4d3f06
mov dword [esp + 0x14], 0
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1c]
test eax, eax
jns 0x4d3f28
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x4d3f94
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esp + 0x28], ebx
je 0x4d3f86
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x2c]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x4d3f5a
jmp 0x4d3f94
mov ecx, dword [esp + 0x18]
push dword [esp + 0x2c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
lea edx, [esp + 0x40]
mov ecx, edi
call fcn.004d350a
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4d3edd
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
push edx
push ebx
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x4d3fe8
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
jmp 0x4d3f03
mov ecx, dword [esp + 0x20]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4d400c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
lea eax, [edx + 0x68]
push eax
push 0
call fcn.004d3903
add esp, 0xc
test al, al
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
je 0x4d3f1c
call dword [ecx + 8]
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x4d4381
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov dword [esi], 0
mov dword [eax], 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x4d3957.36
mov eax, 0x24
mov word [edi], ax
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], 0
cmp cl, 0xf1
jne 0x4d40b6
lea ecx, [edx + 1]
cmp ecx, eax
ja 0x4d4815
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [esp + 0x14], al
jmp 0x4d40cb
lea ecx, [edx + 2]
cmp ecx, eax
ja 0x4d4815
mov eax, dword [esi]
movzx eax, word [edx + eax]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x14]
xor edi, edi
mov dword [esi + 8], ecx
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4d4122
mov edi, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov eax, dword [ebp + 0xc]
mov edx, ebx
add eax, edi
mov ecx, esi
push eax
push 0
call fcn.004d3903
add esp, 0xc
test al, al
je 0x4d4815
mov eax, dword [esp + 0x1c]
movzx ecx, word [esp + 0x14]
inc eax
add edi, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x4d40e3
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004d509f
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push 0
push 0x7b
call dword [sym.imp.OLEAUT32.dll_VarBstrFromR4]
push 0
push 0x55c75e
push dword [esp + 0x28]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4d4176
mov eax, 0x2000
mov word [edi], ax
mov ebx, dword [esi + 8]
lea ecx, [ebx + 4]
cmp ecx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + eax]
mov dword [esi + 8], ecx
mov eax, dword [edi]
test eax, eax
je 0x4d41a3
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [edi], 0
push edi
push 1
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x4d4815
mov edi, dword [edi]
push edi
mov dword [edi + 4], 1
mov dword [edi + 0x10], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
js 0x4d4815
mov ecx, dword [esi + 8]
lea eax, [ecx + ebx]
cmp eax, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
push ebx
add eax, ecx
push eax
push dword [edi + 0xc]
call fcn.004d634d
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [esi + 8], ebx
mov dword [eax], 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4d4212
mov eax, 0x2000
mov word [edi], ax
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp cl, 0xfb
jne 0x4d425e
lea ecx, [eax + 1]
mov dword [esp + 0x3c], ecx
cmp ecx, edi
ja 0x4d4815
mov edx, dword [esi]
mov al, byte [edx + eax]
mov dword [esi + 8], ecx
inc ecx
mov byte [esp + 0x10], al
cmp ecx, edi
ja 0x4d4815
mov eax, dword [esp + 0x3c]
mov al, byte [edx + eax]
mov byte [esp + 0x14], al
jmp 0x4d4291
lea ecx, [eax + 2]
mov dword [esp + 0x3c], ecx
cmp ecx, edi
ja 0x4d4815
mov edx, dword [esi]
movzx eax, word [edx + eax]
mov dword [esi + 8], ecx
add ecx, 2
mov dword [esp + 0x10], eax
cmp ecx, edi
ja 0x4d4815
mov eax, dword [esp + 0x3c]
movzx eax, word [edx + eax]
mov dword [esp + 0x14], eax
lea eax, [ecx + 1]
mov dword [esi + 8], ecx
mov dword [esp + 0x1c], 0
cmp eax, edi
ja 0x4d4815
mov al, byte [ecx + edx]
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x1c], al
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov eax, dword [edi]
test eax, eax
je 0x4d42ca
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [edi], 0
push edi
push 1
push dword [esp + 0x24]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCreateEx]
test eax, eax
js 0x4d4815
movzx eax, word [esp + 0x1c]
mov edi, dword [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x4d42ee.10
jmp dword [eax*4 + 0x4d3767]
mov eax, 0x100
jmp 0x4d430f
mov eax, 0x200
jmp 0x4d430f
mov eax, 0x400
jmp 0x4d430f
mov eax, 0x800
or word [edi + 2], ax
movzx eax, word [esp + 0x14]
mov dword [edi + 4], eax
movzx eax, word [esp + 0x10]
push edi
mov dword [edi + 0x10], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
test eax, eax
js 0x4d4815
mov eax, dword [edi + 0xc]
xor edi, edi
movzx ecx, word [esp + 0x10]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4d4381
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push ecx
push eax
push 0
mov edx, ebx
mov ecx, esi
call fcn.004d3903
add esp, 0xc
test al, al
je 0x4d4815
mov eax, dword [esp + 0x20]
inc edi
movzx ecx, word [esp + 0x14]
add eax, ecx
movzx ecx, word [esp + 0x10]
mov dword [esp + 0x20], eax
cmp edi, ecx
jl 0x4d4344
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4d439f
mov eax, 0x18
mov word [edi], ax
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov al, byte [ecx + eax]
movzx edi, al
mov dword [esi + 8], edx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov eax, dword [ebp + 0xc]
mov edx, ebx
add eax, edi
mov ecx, esi
push eax
push 0
call fcn.004d3903
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [esp + 0x20]
add ecx, edi
mov dword [eax], ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4d43fa
mov eax, 0x18
mov word [edi], ax
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
movzx eax, word [ecx + eax]
movsx edi, ax
jmp 0x4d43b6
test edi, edi
je 0x4d4420
mov eax, 0x18
mov word [edi], ax
mov edi, dword [esi + 8]
lea ecx, [edi + 4]
cmp ecx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov edi, dword [edi + eax]
mov dword [esi + 8], ecx
jmp 0x4d43b9
mov ecx, dword [esi + 8]
lea edx, [ecx + 4]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov ecx, dword [ecx + eax]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
test edi, edi
je 0x4d47c4
mov eax, 9
mov word [edi], ax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov ecx, esi
call fcn.004d3626
test al, al
je 0x4d4815
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
add ecx, eax
add eax, edx
cmp eax, dword [esi + 4]
ja 0x4d44a8
mov dword [esi + 8], eax
xor eax, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
lea esi, [esp + 0x50]
mov dword [esp + 0x58], eax
xor edx, edx
mov dword [esp + 0x64], eax
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x28], ebx
mov word [esp + 0x50], ax
sub esp, 0x10
mov dword [esp + 0x64], eax
mov eax, 0x2011
mov word [esp + 0x38], ax
mov eax, 0xa
mov dword [esp + 0x50], edx
mov word [esp + 0x50], ax
mov eax, esp
mov dword [esp + 0x6c], ecx
sub esp, 0x10
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x3c], ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x80020004
mov dword [eax + 0xc], edx
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x80020004
mov dword [eax + 0xc], edx
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x80020004
mov dword [eax + 0xc], edx
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, esp
mov dword [eax + 4], edx
mov dword [eax + 8], 0x80020004
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x78]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebx
lea ecx, [esp + 0x6c]
call fcn.004d2af6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4d4450
call fcn.004d509f
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov ecx, esi
call fcn.004d3626
test al, al
je 0x4d4815
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x20]
lea eax, [ecx + edx]
cmp eax, dword [esi + 4]
ja 0x4d4815
mov dword [esi + 8], eax
mov eax, dword [esi]
add eax, ecx
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
jmp 0x4d4606
or eax, 0xffffffff
jmp 0x4d4606
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov ecx, esi
call fcn.004d3626
test al, al
je 0x4d4815
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x20]
lea edx, [ecx + eax]
cmp edx, dword [esi + 4]
ja 0x4d4815
push eax
mov eax, dword [esi]
add eax, ecx
mov dword [esi + 8], edx
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
or dword [ebx + 4], 2
mov dword [ebx + 0x58], eax
test edi, edi
je 0x4d4615
mov eax, 0x18
mov word [edi], ax
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
cmp edx, dword [esi + 4]
ja 0x4d4815
mov eax, dword [esi]
mov dword [esp + 0x14], 0
movzx eax, word [ecx + eax]
mov dword [esi + 8], edx
mov dword [esp + 0x28], eax
test eax, eax
je case.0x4d3957.24
mov edi, edi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov ecx, esi
call fcn.004d3626
test al, al
je 0x4d4815
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x20]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x4d4815
lea ebx, [edi + 1]
test ebx, ebx
jne 0x4d467c
xor eax, eax
jmp 0x4d468b
push ebx
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esi + 8]
add ecx, dword [esi]
push edi
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.004d634d
mov eax, dword [esp + 0x28]
add esp, 0xc
mov byte [eax + edi], 0
add dword [esi + 8], edi
test ebx, ebx
je 0x4d46c3
push ebx
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push edi
push eax
push ebx
call fcn.004d634d
add esp, 0xc
mov byte [ebx + edi], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x20]
push eax
call fcn.004ca8bc
lea ecx, [esp + 0x20]
call fcn.004ca8a6
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 4]
ja 0x4d47cd
mov eax, dword [esi]
mov bl, byte [ecx + eax]
xor eax, eax
mov dword [esp + 0x40], eax
mov ecx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4c]
mov dword [esi + 8], edx
push eax
lea eax, [esp + 0x48]
xor edx, edx
push eax
call fcn.004d3903
add esp, 0xc
test al, al
je 0x4d47cd
push 0x19
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4d475f
mov dword [ecx], 0
mov byte [ecx + 0x18], 0
jmp 0x4d4761
xor ecx, ecx
mov eax, dword [esp + 0x18]
test bl, bl
mov ebx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x14], eax
setne al
mov byte [ecx + 0x18], al
inc ebx
xor eax, eax
mov dword [esp + 0x18], 0
mov word [esp + 0x40], ax
mov eax, dword [0x4e05a0]
mov dword [ecx], eax
mov dword [0x4e05a0], ecx
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x28]
jl 0x4d4643
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d4815
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push 0
push edx
call dword [sym.imp.OLEAUT32.dll_VarBstrFromR4]
push 0
push 0x55c75e
push dword [esp + 0x28]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004d509f
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret