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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x4d3389
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
call fcn.00405dd8
mov edi, dword [0x50c3d8]
xor eax, eax
push ebp
push 0x4e521a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004d3334
mov ebx, dword [ebp - 0xc]
shl ebx, 3
lea ebx, [ebx + ebx*8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x118]
lea eax, [eax + ebx*8 + 0x40]
push eax
push pe_nt_image_headers32
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov ecx, 4
call fcn.00442c38
mov eax, dword [ebp + 8]
add dword [eax], 4
mov eax, dword [ebp - 0x1c]
call fcn.00403680
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004d3334
mov edx, dword [ebp + 0x10]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x118]
lea edx, [edx + ebx*8 + 0x40]
push edx
push pe_nt_image_headers32
mov eax, esi
mov edx, eax
mov ecx, dword [ebp - 0x1c]
call fcn.00442b84
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
add dword [eax], edx
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
add esi, 4
lea eax, [ebp - 0x34]
mov edx, esi
call fcn.00405920
mov eax, dword [ebp - 0x34]
call fcn.00405a28
add eax, eax
add eax, 2
add esi, eax
mov al, byte [esi]
mov byte [ebp - 0x35], al
inc esi
cmp dword [ebp - 0x2c], 1
jne 0x4d3723
cmp byte [ebp - 0x35], 3
jne 0x4d3723
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [edi]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
mov edx, dword [edi + 0x10]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2c]
mov edx, dword [edi + 0x14]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov edx, dword [edi + 0x18]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x34]
mov edx, dword [edi + 0x20]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x38]
mov edx, dword [edi + 0x24]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
mov edx, dword [edi + 0x28]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
mov edx, dword [edi + 0x2c]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edi + 0x30]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov edx, dword [edi + 0x34]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x34]
call fcn.00405828
mov al, byte [0x4e522c]
push eax
push 0
lea eax, [ebp - 0x78]
push eax
mov eax, dword [0x50c434]
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
mov edx, dword [edi + 0x38]
mov eax, dword [ebp - 0x34]
call fcn.00451b08
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x34]
call fcn.00405828
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x34]
call fcn.00409e78
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x34]
call fcn.00405828
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
lea ebx, [eax + 0x20]
cmp dword [ebp - 8], 0
je 0x4d3c60
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4d37b9
inc edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
call fcn.0041b58c
mov al, byte [eax + 0x3c]
cmp al, byte [ebp - 0x35]
jne 0x4d37b3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
call fcn.0041b58c
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x34]
call fcn.00405b44
jne 0x4d37b3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
call fcn.0041b58c
mov ebx, eax
jmp 0x4d37b9
inc dword [ebp - 0x10]
dec edi
jne 0x4d3767
test ebx, ebx
jne 0x4d3c60
mov edx, dword [0x4de328]
mov eax, 0xa8
call fcn.00406234
mov ebx, eax
mov edx, 0xa8
mov eax, ebx
call fcn.004088b4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, ebx
call fcn.0041b430
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx], eax
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x34]
call fcn.00405804
mov al, byte [ebp - 0x35]
mov byte [ebx + 0x3c], al
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00405b44
je 0x4d382d
lea edx, [ebp - 0x80]
mov eax, dword [ebp + 0xc]
call fcn.00451e54
mov edx, dword [ebp - 0x80]
lea eax, [ebp + 0xc]
call fcn.00405828
lea eax, [ebp - 0x88]
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0xc]
call fcn.00405a94
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00409e78
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0xc]
call fcn.00405804
lea edx, [ebp - 0x8c]
mov eax, dword [ebx + 0xc]
call fcn.004dab34
mov ecx, dword [ebp - 0x8c]
mov dl, 1
mov eax, dword [0x4ebd90]
call fcn.004db080
mov dword [ebx + 0x34], eax
lea edx, [ebp - 0x90]
mov eax, dword [ebx + 0xc]
call fcn.004dad60
mov ecx, dword [ebp - 0x90]
mov dl, 1
mov eax, dword [0x4ebd90]
call fcn.004db080
mov dword [ebx + 0x38], eax
mov al, byte [ebx + 0x3c]
cmp al, 2
jne 0x4d394c
push 0x4e5238
mov eax, 0x100000
call fcn.00403b54
lea ecx, [ebp - 0x9c]
mov edx, 5
call fcn.0040a59c
push dword [ebp - 0x9c]
push 0x4e5244
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.0040543c
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
call fcn.0040599c
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x24]
call fcn.00409e78
lea edx, [ebp - 0xa4]
mov eax, dword [ebx + 0xc]
call fcn.00451f48
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.00451e54
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x24]
call fcn.00405a34
mov eax, dword [ebp - 0xa0]
call fcn.004520f8
test al, al
jne 0x4d38ae
jmp 0x4d3a6a
sub al, 1
je 0x4d3958
sub al, 2
jne 0x4d3a6a
call fcn.0040c57c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0xac]
call fcn.004d32fc
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x48], 0x10
mov eax, 0x100000
call fcn.00403b54
lea ecx, [ebp - 0xb8]
mov edx, 5
call fcn.0040a59c
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
mov edx, 0x4e5238
call fcn.004053c8
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
call fcn.0040599c
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0x24]
call fcn.00409e78
lea edx, [ebp - 0xc4]
mov eax, dword [ebx + 0xc]
call fcn.00451ea4
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.00451f48
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.00451e54
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0x24]
call fcn.00405a34
mov eax, dword [ebp - 0xbc]
call fcn.004520e4
test al, al
jne 0x4d39ac
mov eax, dword [ebp - 0x24]
call fcn.00405a28
add eax, eax
push eax
mov eax, dword [ebp - 0x24]
call fcn.00405a18
mov edx, eax
lea eax, [ebx + 0x10]
pop ecx
call fcn.004088ac
mov al, byte [ebx + 0x3c]
dec eax
sub al, 3
jae 0x4d3c18
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.00405b44
je 0x4d3c18
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
call fcn.0040663c
mov edi, eax
dec edi
test edi, edi
jl 0x4d3c18
inc edi
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8]
lea edx, [ebp - 0xc8]
call fcn.00409e78
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 8]
call fcn.00405b44
jne 0x4d3c0e
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x24]
call fcn.00451e54
mov eax, dword [ebx + 0x34]
call fcn.004dafe0
dec eax
test eax, eax
jl 0x4d3b60
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xd4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x34]
call fcn.004dafc0
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x24]
call fcn.00405a94
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.00451e54
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0x24]
call fcn.00405828
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x4d3b14
lea eax, [ebx + 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00405804
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x4ebd90]
call fcn.004db080
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x110]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x24]
call fcn.00451e54
mov eax, dword [ebx + 0x38]
call fcn.004dafe0
dec eax
test eax, eax
jl 0x4d3bfc
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xe0]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x38]
call fcn.004dafc0
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 0x24]
call fcn.00405a94
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.00451e54
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0x24]
call fcn.00405828
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x4d3bb0
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x4ebd90]
call fcn.004db080
mov dword [ebx + 0x30], eax
inc dword [ebp - 0x14]
dec edi
jne 0x4d3aad
mov dl, 1
mov eax, dword [0x42a0bc]
call fcn.00404168
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x42a0bc]
call fcn.00404168
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42a0bc]
call fcn.00404168
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42a0bc]
call fcn.00404168
mov dword [ebx + 0xa0], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x9c], eax
cmp byte [ebx + 0x3c], 2
jne 0x4d3d6b
mov al, byte [esi]
mov byte [ebx + 0x4d], al
inc esi
mov al, byte [esi]
mov byte [ebx + 0x4c], al
inc esi
mov eax, dword [esi]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x54], eax
add esi, 8
mov edx, 0x1000
mov eax, dword [ebx + 0x50]
call fcn.004cd474
xor edx, edx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0xac]
call fcn.004d32fc
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x64], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0xac]
call fcn.004d32fc
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x7c], eax
add esi, 8
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 0xac]
call fcn.004d32fc
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x74], eax
add esi, 8
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi]
mov dword [ebx + 0x48], eax
add esi, 4
mov eax, dword [esi]
mov dword [ebx + 0x94], eax
add esi, 4
xor eax, eax
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebx + 0x90], eax
push 1
push 0
mov eax, dword [ebx + 0x94]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00407eb8
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x94]
add dword [eax], edx
mov eax, dword [ebp - 0x20]
call fcn.004036b0
mov edi, dword [ebp - 0x30]
dec edi
test edi, edi
jl 0x4d3d99
inc edi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d3380
pop ecx
dec edi
jne 0x4d3d7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5221
lea eax, [ebp - 0xe0]
mov edx, 0xa
call fcn.004057e0
lea eax, [ebp - 0xb8]
mov edx, 2
call fcn.004050d0
lea eax, [ebp - 0xb0]
call fcn.004057c8
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.004057e0
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.004050d0
lea eax, [ebp - 0x94]
mov edx, 0x16
call fcn.004057e0
lea eax, [ebp - 0x34]
call fcn.004057c8
lea eax, [ebp - 0x24]
call fcn.004057c8
lea eax, [ebp + 0xc]
call fcn.004057c8
ret