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

Disassembly:
sub esp, 0x15c
push ebx
push esi
push edi
mov ebx, ecx
mov esi, dword [esp + 0x170]
push ebp
xor ecx, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dl, byte [ebx + 9]
test dl, dl
jne 0x4d6ebb
mov eax, dword [ebx + 4]
test eax, eax
je 0x4d6953
mov esi, 0xffffffff
mov ebx, eax
jmp 0x4d6925
mov eax, dword [ebx]
test eax, eax
je 0x4d6ebb
mov al, byte [ebx + 8]
test al, al
je 0x4d696b
mov ecx, ebx
call fcn.004d6ed0
mov eax, dword [esp + 0x170]
test eax, eax
je 0x4d6989
lea ecx, [ebx + 0xa]
push 0xc
push eax
push ecx
call fcn.00535310
mov byte [ebx + 0x16], 0
add esp, 0xc
mov cl, byte [ebx + 0xa]
lea eax, [ebx + 0xa]
test cl, cl
je 0x4d6ebb
cmp esi, 0xffffffff
jg 0x4d699f
mov esi, dword [ebx + 0x18]
mov cl, byte [0x566d04]
test cl, cl
jne 0x4d69b1
test esi, esi
jge 0x4d6c85
lea ecx, [esp + 0x68]
push eax
mov eax, dword [ebx]
add eax, 0x1c
push eax
push 0x561964
push ecx
call fcn.00535470
lea ecx, [esp + 0x78]
add esp, 0x10
push 0
push 0
push ecx
call fcn.00535c20
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x4d6c85
lea eax, [esp + 0x38]
push 0x2c
push eax
push edi
call fcn.005359b0
add esp, 0xc
test eax, eax
jne 0x4d6a0c
mov byte [ebx + 9], 1
push edi
call fcn.005358e0
add esp, 4
jmp 0x4d6ebb
lea eax, [esp + 0x38]
push 4
push str.RIFF
push eax
call fcn.00535410
add esp, 0xc
test eax, eax
jne 0x4d6c73
cmp word [esp + 0x4c], 1
jne 0x4d6c73
mov eax, dword [esp + 0x60]
push eax
mov dword [ebx + 0x38], eax
call fcn.0052f730
add esp, 4
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x4d6a5d
mov byte [ebx + 9], 1
push edi
call fcn.005358e0
add esp, 4
jmp 0x4d6ebb
mov ecx, dword [ebx + 0x38]
push ecx
push eax
push edi
call fcn.005359b0
add esp, 0xc
test eax, eax
jne 0x4d6a94
mov byte [ebx + 9], 1
mov eax, dword [ebx + 0x2c]
push eax
call fcn.0052f860
add esp, 4
mov dword [ebx + 0x2c], 0
push edi
call fcn.005358e0
add esp, 4
jmp 0x4d6ebb
push edi
call fcn.005358e0
add esp, 4
push 0x12
call fcn.0052f730
add esp, 4
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x4d6aca
mov byte [ebx + 9], 1
mov eax, dword [ebx + 0x2c]
push eax
call fcn.0052f860
mov dword [ebx + 0x2c], 0
add esp, 4
jmp 0x4d6ebb
mov cx, word [esp + 0x4c]
mov word [eax], cx
mov ax, word [esp + 0x4e]
mov edx, dword [ebx + 0x30]
mov word [edx + 2], ax
mov edx, dword [ebx + 0x30]
mov ebp, dword [esp + 0x50]
mov dword [edx + 4], ebp
mov edx, dword [ebx + 0x30]
mov eax, dword [esp + 0x54]
mov dword [edx + 8], eax
mov edx, dword [ebx + 0x30]
mov cx, word [esp + 0x58]
xor esi, esi
mov word [edx + 0xc], cx
mov edx, dword [ebx + 0x30]
mov ax, word [esp + 0x5a]
mov word [edx + 0xe], ax
mov edx, dword [ebx + 0x30]
mov word [edx + 0x10], si
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], 0xe2
mov eax, dword [ebx + 0x38]
lea ebp, [ebx + 0x34]
mov dword [esp + 0x2c], eax
push esi
mov dword [esp + 0x34], esi
push ebp
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x3c], edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4d6b78
mov byte [ebx + 9], 1
mov dword [ebp], esi
mov eax, dword [ebx + 0x30]
push eax
call fcn.0052f860
add esp, 4
mov dword [ebx + 0x30], esi
mov eax, dword [ebx + 0x2c]
push eax
call fcn.0052f860
add esp, 4
mov dword [ebx + 0x2c], esi
jmp 0x4d6ebb
mov ecx, dword [ebp]
push 0
lea eax, [esp + 0x14]
lea edx, [esp + 0x1c]
lea esi, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push edx
push esi
mov edx, dword [ebx + 0x38]
push eax
mov esi, dword [ecx]
push edx
push 0
push ecx
call dword [esi + 0x2c]
test eax, eax
jne 0x4d6c34
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx + 0x2c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4d6be3
mov eax, ecx
mov esi, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esi, ecx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
mov ebp, dword [esp + 0x18]
push edx
mov eax, dword [esp + 0x24]
push ebp
push eax
mov esi, dword [ecx]
push ecx
call dword [esi + 0x4c]
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.0052f860
mov dword [ebx + 0x30], 0
add esp, 4
mov eax, dword [ebx + 0x2c]
push eax
call fcn.0052f860
add esp, 4
mov eax, 1
mov dword [ebx + 0x2c], 0
mov byte [ebx + 8], 1
jmp 0x4d6ebd
mov byte [ebx + 9], 1
mov eax, dword [ebp]
push eax
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebp], 0
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.0052f860
mov dword [ebx + 0x30], 0
add esp, 4
mov eax, dword [ebx + 0x2c]
push eax
call fcn.0052f860
mov dword [ebx + 0x2c], 0
add esp, 4
jmp 0x4d6ebb
mov byte [ebx + 9], 1
push edi
call fcn.005358e0
add esp, 4
jmp 0x4d6ebb
cmp esi, 0xffffffff
jle 0x4d6eb7
lea eax, [esp + 0x64]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push 0x77617620
call fcn.0045d3e0
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x4d6eb7
lea edi, [esp + 0x38]
mov esi, ebp
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x60]
push eax
mov dword [ebx + 0x38], eax
call fcn.0052f730
add esp, 4
mov edi, eax
mov dword [ebx + 0x2c], eax
test edi, edi
jne 0x4d6cf5
mov byte [ebx + 9], 1
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x4d6ebb
push ebp
call fcn.0052f860
add esp, 4
jmp 0x4d6ebb
mov eax, dword [ebx + 0x38]
lea esi, [ebp + 0x2c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
cmp ecx, 1
jne 0x4d6d1b
push ebp
call fcn.0052f860
add esp, 4
push 0x12
call fcn.0052f730
add esp, 4
mov ecx, eax
mov dword [ebx + 0x30], eax
test ecx, ecx
jne 0x4d6d4d
mov byte [ebx + 9], 1
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x4d6ebb
push ebp
call fcn.0052f860
add esp, 4
jmp 0x4d6ebb
mov ax, word [esp + 0x4c]
mov word [ecx], ax
mov ecx, dword [ebx + 0x30]
mov dx, word [esp + 0x4e]
mov word [ecx + 2], dx
mov ecx, dword [ebx + 0x30]
mov eax, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [esp + 0x54]
mov dword [ecx + 8], edx
mov ecx, dword [ebx + 0x30]
mov ax, word [esp + 0x58]
xor esi, esi
mov word [ecx + 0xc], ax
mov ecx, dword [ebx + 0x30]
mov dx, word [esp + 0x5a]
mov word [ecx + 0xe], dx
mov ecx, dword [ebx + 0x30]
mov word [ecx + 0x10], si
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], 0xe2
mov eax, dword [ebx + 0x38]
lea ebp, [ebx + 0x34]
mov dword [esp + 0x2c], eax
push esi
mov dword [esp + 0x34], esi
push ebp
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x2c]
mov edx, dword [ebx]
push ecx
mov eax, dword [edx + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4d6dec
mov byte [ebx + 9], 1
mov dword [ebp], esi
mov eax, dword [ebx + 0x30]
push eax
call fcn.0052f860
add esp, 4
mov dword [ebx + 0x30], esi
jmp 0x4d6ebb
mov ecx, dword [ebp]
push 0
lea eax, [esp + 0x14]
lea edx, [esp + 0x1c]
lea esi, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push edx
push esi
mov edx, dword [ebx + 0x38]
push eax
mov esi, dword [ecx]
push edx
push 0
push ecx
call dword [esi + 0x2c]
test eax, eax
jne 0x4d6e8e
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx + 0x2c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4d6e53
mov eax, ecx
mov esi, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esi, ecx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
mov ebp, dword [esp + 0x18]
push edx
mov eax, dword [esp + 0x24]
push ebp
push eax
mov esi, dword [ecx]
push ecx
call dword [esi + 0x4c]
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.0052f860
add esp, 4
mov eax, 1
mov dword [ebx + 0x30], 0
mov byte [ebx + 8], 1
jmp 0x4d6ebd
mov byte [ebx + 9], 1
mov eax, dword [ebp]
push eax
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebp], 0
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.0052f860
mov dword [ebx + 0x30], 0
add esp, 4
jmp 0x4d6ebb
mov byte [ebx + 9], 1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x15c
ret 8