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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push esi
xor esi, esi
push edi
push 4
xor edi, edi
mov dword [esp + 0x3c], esi
push esi
push esi
push eax
mov eax, dword [ebx]
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x34], esi
call eax
add esp, 0x14
cmp eax, 4
jne 0x48ed8c
mov eax, dword [esp + 0x18]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x1b]
shl ecx, 8
or ecx, eax
cmp ecx, 0x52494646
jne 0x48ed8c
push 4
push esi
push 4
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x48e3a9
mov dword [esp + 0x3c], 0xffffffff
jmp 0x48e3d0
movzx edx, byte [esp + 0x1b]
movzx eax, byte [esp + 0x1a]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x18]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [esp + 0x3c], edx
mov eax, dword [ebx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x40]
add esp, 4
add ecx, 8
cmp ecx, eax
jne 0x48ed8c
push 4
push 0
push 8
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x48ed8c
mov eax, dword [esp + 0x18]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x1b]
shl ecx, 8
or ecx, eax
cmp ecx, 0x57415645
jne 0x48ed8c
mov edx, str.waa_wac_wad_wam_wav_lwav
mov ecx, ebx
call fcn.0040b140
test eax, eax
je 0x48ed8c
xor eax, eax
mov dword [esp + 0x70], 0xc
mov edx, ebx
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.004e8210
test eax, eax
je 0x48e630
lea ebx, [ebx]
mov eax, dword [esp + 0x64]
cmp eax, 0x64617461
ja 0x48e4f6
je 0x48e4e1
cmp eax, 0x4c495354
je 0x48e4cc
cmp eax, 0x63756520
jne 0x48ed8c
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], 1
mov dword [esp + 0x50], eax
jmp 0x48e61d
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], eax
jmp 0x48e61d
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
jmp 0x48e61d
cmp eax, 0x666d7420
jne 0x48ed8c
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
cmp eax, 0x10
jb 0x48ed8c
push 2
mov eax, esi
cdq
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
je 0x48e538
or eax, 0xffffffff
jmp 0x48e54d
mov ax, word [esp + 0x10]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
movzx eax, ax
mov dword [esp + 0x40], eax
lea eax, [esi + 2]
cdq
push 2
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
je 0x48e573
or eax, 0xffffffff
jmp 0x48e588
mov ax, word [esp + 0x14]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
movzx esi, ax
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x38], esi
cdq
push 4
push edx
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x48e5b7
mov dword [esp + 0x34], 0xffffffff
jmp 0x48e5de
movzx edx, byte [esp + 0x3f]
movzx eax, byte [esp + 0x3e]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x3c]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x2c]
add eax, 0xc
cdq
push 2
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
je 0x48e601
or eax, 0xffffffff
jmp 0x48e616
mov ax, word [esp + 0x18]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
movzx eax, ax
mov dword [esp + 0x30], eax
mov edx, ebx
lea ecx, [esp + 0x64]
call fcn.004e8210
test eax, eax
jne 0x48e490
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x48ed8c
cmp dword [esp + 0x28], edi
je 0x48ed8c
cmp dword [esp + 0x24], edi
je 0x48ed8c
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x48ed8c
mov eax, dword [esp + 0x40]
sub eax, 0xfffe
je 0x48e80f
sub eax, 1
jne 0x48e7d3
mov dword [esp + 0x44], edi
test esi, esi
jle 0x48e7d3
mov eax, edx
mov edi, dword [esp + 0x24]
xor edx, edx
add edi, 0xfffffff8
div esi
mov dword [esp + 0x60], eax
add edi, eax
push 4
lea eax, [edi - 8]
cdq
push edx
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x48e805
mov eax, dword [esp + 0x3c]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x3e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x3f]
shl ecx, 8
or ecx, eax
cmp ecx, 0x7007777
jne 0x48e805
push 4
lea eax, [edi - 4]
cdq
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x48e805
mov eax, dword [esp + 0x18]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x1b]
shl ecx, 8
or ecx, eax
cmp ecx, 0x77777777
jne 0x48e805
push 4
mov eax, edi
cdq
push edx
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x48e805
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
cmp ecx, 0x77777777
jne 0x48e805
push 4
lea eax, [edi + 4]
cdq
push edx
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x48e805
mov eax, dword [esp + 0x10]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x13]
shl ecx, 8
or ecx, eax
cmp ecx, 0x77777777
jne 0x48e805
mov eax, dword [esp + 0x44]
add edi, dword [esp + 0x60]
inc eax
mov dword [esp + 0x44], eax
cmp eax, esi
jl 0x48e693
mov edx, dword [esp + 0x20]
test edx, edx
je 0x48e860
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x50]
push dword [esp + 0x58]
push dword [esp + 0x60]
call fcn.0048eda0
add esp, 0x14
jmp 0x48e86c
mov dword [esp + 0x20], 1
jmp 0x48e7df
push 2
lea eax, [ecx + 0x10]
cdq
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
je 0x48e83a
xor edx, edx
or eax, 0xffffffff
test ax, ax
sete dl
mov dword [esp + 0x20], edx
jmp 0x48e7d7
mov ax, word [esp + 0x18]
xor edx, edx
movzx ecx, ah
shl cx, 8
movzx eax, al
or cx, ax
movzx eax, cx
test ax, ax
sete dl
mov dword [esp + 0x20], edx
jmp 0x48e7d7
mov edx, str.waa_wam
mov ecx, ebx
call fcn.0040b140
mov edx, eax
mov dword [esp + 0x54], eax
mov ecx, esi
call fcn.00405ab0
mov edi, eax
test edi, edi
je 0x48ed8c
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [edi + 0x14], 0x72
mov dword [edi + 4], eax
test ecx, ecx
je 0x48e8a7
mov eax, dword [esp + 0x58]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x40]
cmp eax, 0x69
jg 0x48eb6e
je 0x48eadf
sub eax, 1
je 0x48e9c3
sub eax, 1
jne 0x48ed8c
mov ecx, dword [esp + 0x28]
cmp ecx, 0x12
je 0x48e8de
cmp ecx, 0x32
jne 0x48ed8c
mov edx, dword [esp + 0x30]
lea eax, [esi + esi*8]
shl eax, 2
cmp edx, eax
jne 0x48ed8c
mov dword [edi + 0xc], 0x4a
mov dword [edi + 0x10], 0
mov dword [edi + 0x34], edx
cmp ecx, 0x32
jne 0x48e956
mov eax, dword [esp + 0x2c]
add eax, 0x10
cdq
push 2
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 2
jne 0x48ed8c
mov ax, word [esp + 0x18]
movzx ecx, ah
shl cx, 8
movzx eax, al
or cx, ax
jne 0x48ed8c
mov edx, dword [esp + 0x2c]
mov ecx, ebx
lea edx, [edx + 0x14]
call fcn.004e1be0
test eax, eax
je 0x48ed8c
mov ecx, dword [edi + 0x34]
test ecx, ecx
jle 0x48e9a5
test esi, esi
jle 0x48e9a5
mov eax, dword [esp + 0x1c]
cdq
idiv ecx
lea eax, [esi + esi*2]
add eax, eax
mov dword [esp + 0x60], eax
test edx, edx
je 0x48e984
sub edx, eax
add edx, edx
mov eax, edx
cdq
idiv esi
mov dword [esp + 0x5c], eax
jmp 0x48e98c
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x1c]
cdq
idiv ecx
sub ecx, dword [esp + 0x60]
imul eax, ecx
add eax, eax
cdq
idiv esi
add eax, dword [esp + 0x5c]
jmp 0x48e9a7
xor eax, eax
cmp dword [esp + 0x20], 0
mov dword [edi], eax
jne 0x48ed6d
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
jmp 0x48eca4
cmp dword [esp + 0x28], 0x10
jne 0x48ed8c
lea eax, [esi + esi]
cmp dword [esp + 0x30], eax
jne 0x48ed8c
mov eax, dword [esp + 0x24]
cdq
push 4
push edx
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
jne 0x48ed8c
mov eax, dword [esp + 0x40]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x42]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x43]
shl ecx, 8
or ecx, eax
cmp ecx, 0x4d534643
jne 0x48ed8c
push 0x20
push 1
call fcn.0050f2a0
mov esi, eax
add esp, 8
test esi, esi
je 0x48ea6d
mov dword [esi], 0x406f10
mov dword [esi + 4], fcn.00406f30
mov dword [esi + 8], 0x406f50
mov dword [esi + 0xc], 0x406df0
mov dword [esi + 0x10], 0x406f70
mov dword [esi + 0x14], fcn.00406f90
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 0
push dword [esp + 0x28]
call fcn.00407110
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x48ea94
test esi, esi
je 0x48ea94
mov ecx, dword [esi + 0x14]
push esi
call ecx
add esp, 4
push 0x5efc44
mov ecx, ebx
call fcn.00407550
mov esi, eax
add esp, 4
test esi, esi
je 0x48ed8c
push esi
call fcn.00498100
mov ecx, dword [esi + 0x14]
add esp, 4
mov ebx, eax
push esi
call ecx
add esp, 4
test ebx, ebx
je 0x48ed8c
mov ecx, dword [edi + 0x14]
mov dword [ebx + 0x14], ecx
mov ecx, edi
call fcn.00405c10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
cmp eax, 0x12
je 0x48eaf1
cmp eax, 0x14
jne 0x48ed8c
lea ecx, [esi + esi*8]
shl ecx, 2
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x30], ecx
jne 0x48ed8c
mov dword [edi + 0xc], 0x38
mov dword [edi + 0x10], 0
test esi, esi
jle 0x48e9a5
mov eax, dword [esp + 0x1c]
xor edx, edx
div ecx
lea eax, [esi*4]
test edx, edx
jle 0x48eb48
cmp edx, eax
jle 0x48eb48
sub edx, eax
add edx, edx
mov eax, edx
cdq
idiv esi
mov dword [esp + 0x5c], eax
lea eax, [esi*4]
jmp 0x48eb50
mov dword [esp + 0x5c], 0
sub ecx, eax
xor edx, edx
mov eax, dword [esp + 0x1c]
div dword [esp + 0x60]
xor edx, edx
imul eax, ecx
add eax, eax
div esi
add eax, dword [esp + 0x5c]
jmp 0x48e9a7
sub eax, 0xfffe
je 0x48ec16
sub eax, 1
jne 0x48ed8c
cmp dword [esp + 0x28], 0x12
jne 0x48ed8c
cmp dword [esp + 0x30], 0x10
jne 0x48ed8c
xor edx, edx
mov dword [edi + 0xc], 0x20
mov dword [edi + 0x10], 1
test ecx, ecx
je 0x48ebd2
imul ecx, dword [edi + 8], 0x6400
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
div ecx
mov ecx, dword [esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [edi + 8]
mov dword [edi + 0x30], eax
mov eax, 0x6400
jmp 0x48ebda
mov ecx, dword [esp + 0x1c]
mov eax, ecx
div esi
mov dword [edi + 0x24], eax
test esi, esi
jg 0x48ebe5
xor ecx, ecx
jmp 0x48ebfa
mov eax, ecx
xor edx, edx
div esi
shr eax, 4
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
cmp dword [esp + 0x20], 0
mov dword [edi], ecx
jne 0x48ed6d
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], ecx
jmp 0x48eca4
cmp dword [esp + 0x28], 0x12
jne 0x48ed8c
cmp dword [esp + 0x30], 8
jne 0x48ed8c
mov dword [edi + 0xc], 0x17
mov dword [edi + 0x10], 1
test esi, esi
jg 0x48ec42
xor ecx, ecx
jmp 0x48ec58
mov eax, dword [esp + 0x1c]
xor edx, edx
div esi
shr eax, 3
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
xor edx, edx
mov dword [edi], ecx
cmp dword [esp + 0x20], edx
jne 0x48ecce
imul eax, esi, 0x2e
mov dword [edi + 0x1c], edx
push 1
mov dword [edi + 0x20], ecx
mov ecx, edi
add eax, dword [esp + 0x20]
div esi
mov esi, dword [esp + 0x28]
mov edx, ebx
push eax
push esi
mov dword [edi + 0x24], eax
call fcn.004dcbd0
add esp, 0xc
lea eax, [esi + 0x20]
mov edx, ebx
mov ecx, edi
push 1
push dword [edi + 0x24]
push eax
call fcn.004dccd0
add esp, 0xc
add esi, 0x2e
mov dword [esp + 0x24], esi
cmp dword [esp + 0x54], 0
je 0x48ed6d
mov eax, dword [esp + 0x34]
shl eax, 4
sub eax, dword [esp + 0x34]
cmp dword [edi], eax
jge 0x48ed6d
mov dword [edi + 0x18], 0
jmp 0x48ed6d
imul ecx, dword [edi + 8], 0x6400
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x24], 0x6400
div ecx
shr edx, 1
add edx, 7
and edx, 0xfffffff8
mov dword [edi + 0x30], edx
test esi, esi
jle 0x48ed6d
mov eax, 0x16
mov dword [esp + 0x5c], eax
mov edi, edi
mov edx, 0x52c3e2
mov esi, eax
jmp 0x48ed10
mov ecx, dword [edi + 0x190]
lea esi, [esi + 8]
movzx eax, word [edx - 2]
mov word [esi + ecx - 0xa], ax
mov ecx, dword [edi + 0x190]
movzx eax, word [edx]
mov word [esi + ecx - 8], ax
mov ecx, dword [edi + 0x190]
movzx eax, word [edx + 2]
mov word [esi + ecx - 6], ax
mov ecx, dword [edi + 0x190]
movzx eax, word [edx + 4]
add edx, 8
mov word [esi + ecx - 4], ax
cmp edx, 0x52c402
jl 0x48ed10
mov eax, dword [esp + 0x5c]
add eax, 0x30c
sub dword [esp + 0x38], 1
mov dword [esp + 0x5c], eax
jne 0x48ed00
push 0
push dword [esp + 0x28]
mov edx, ebx
mov ecx, edi
call fcn.004064d0
add esp, 8
test eax, eax
je 0x48ed8c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00405c10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret