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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475d46
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x190
lea edx, [esp]
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x1b0]
push edi
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0042ae50
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x42d1fb
cmp eax, 0x13
jge 0x42d1fb
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x42d1fb
cmp eax, 0xb
jge 0x42d1fb
mov eax, dword [ebp + 0x18f0c]
test eax, eax
je 0x42caaf
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0042af70
jmp 0x42d1fb
lea ecx, [ebp + 0x58c]
push 0
call fcn.00449970
mov edx, dword [ebp + 0xc44]
lea esi, [ebp + 0xc44]
push 0
mov ecx, esi
call dword [edx + 0x50]
test eax, eax
jne 0x42d1fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
je 0x42d1fb
mov ecx, esi
call fcn.004215e0
test eax, eax
jg 0x42d1fb
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [0x4942ec]
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1b0], 0
call fcn.00468ac0
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
push str._sSound_sel.wav
push ecx
mov byte [esp + 0x1b4], 1
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a8], 0
call fcn.00465724
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x19438]
push edx
push eax
call fcn.00445f90
mov bl, al
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00445ee0
add esp, 4
test eax, eax
je 0x42d1e7
cmp bl, 1
je 0x42d1e7
mov ecx, dword [ebp + 0x19438]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00446230
lea ecx, [esp + 0x30]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x19438]
push 1
push edx
call fcn.00446230
mov eax, dword [esp + 0x30]
push eax
call fcn.00445ee0
add esp, 4
test eax, eax
je 0x42cc0c
mov ecx, dword [ebp + 0x19438]
push 0
call fcn.00446210
mov ecx, dword [ebp + 0x19438]
push 1
call fcn.00446210
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea edi, [ebp + 0x18f10]
push edi
push ecx
push edx
mov ecx, esi
call fcn.0041e2f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, esi
call fcn.0041e2f0
jmp 0x42d1e7
mov edx, dword [esp + 0x28]
push edx
call fcn.00445ee0
add esp, 4
test eax, eax
jne 0x42cc8a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.004363d0
test eax, eax
jne 0x42cc3b
push 1
mov ecx, ebp
call fcn.004362d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x19438]
push edx
push eax
push 0
call fcn.00446190
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0x18f10]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0041e220
mov ecx, 0x494280
call fcn.00405820
test eax, eax
je 0x42d1e7
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
jmp 0x42d1dc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov ecx, dword [esp + 0x14]
jne 0x42cce0
cmp dword [esp + 0x20], ecx
jne 0x42cce0
push 1
mov ecx, ebp
call fcn.004362d0
mov ecx, dword [ebp + 0x19438]
push 0
call fcn.00446210
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [ebp + 0x18f10]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0041e2f0
mov ecx, dword [ebp + 0x19438]
push 1
call fcn.00446210
jmp 0x42d1e7
push ecx
mov ecx, dword [ebp + 0x19438]
push eax
push 1
call fcn.00446190
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edi, [ebp + 0x18f10]
mov ecx, esi
push edi
push edx
push eax
call fcn.0041e220
cmp byte [esp + 0x28], bl
jne 0x42d14d
mov al, byte [ebp + 0x5e04]
mov ebx, 0xd4
cmp al, bl
jne 0x42cf1b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.004363d0
test eax, eax
je 0x42cd4e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.004363d0
test eax, eax
je 0x42cd78
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.004363d0
test eax, eax
jne 0x42cd81
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004363d0
test eax, eax
je 0x42cd81
push 1
mov ecx, ebp
call fcn.004362d0
mov ecx, 0x494280
call fcn.00405820
test eax, eax
je 0x42cda3
mov eax, dword [esp + 0x24]
push 0
push 0
push eax
lea ecx, [ebp + 0x17be4]
call fcn.00458a60
mov eax, dword [ebp + 0x19450]
test eax, eax
je 0x42ce31
mov ecx, dword [ebp + 0x19438]
push 0
call fcn.00446210
mov ecx, dword [ebp + 0x19438]
push 1
call fcn.00446210
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x19438]
push edx
call fcn.00445f90
mov byte [esp + 0x18], al
mov esi, dword [esp + 0x18]
push esi
call fcn.00445f00
add esp, 4
test eax, eax
je 0x42cdfd
push esi
mov ecx, ebp
call fcn.004300d0
mov ecx, dword [ebp + 0x19438]
push 0
push 0
call fcn.00446370
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push 1
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push 0
mov ecx, ebp
call fcn.00434680
jmp 0x42d1e7
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x68]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0x58c]
mov word [esp + 0x72], 0x21
mov dword [esp + 0x6c], eax
call fcn.00449910
mov edx, dword [esp + 0x1c]
xor cx, cx
mov cl, al
mov eax, dword [esp + 0x20]
mov word [esp + 0x6c], cx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
mov ecx, ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x74], ebx
call fcn.00435c10
cmp dword [ebp + 0x5bc], 3
jge 0x42cebb
mov dl, byte [ebp + 0x5ba]
mov cl, byte [ebp + 0x5b9]
inc dl
mov al, dl
mov byte [ebp + 0x5ba], dl
cmp al, cl
jbe 0x42cec2
mov byte [ebp + 0x5b9], al
jmp 0x42cec2
mov byte [ebp + 0x5ba], 0
xor eax, eax
xor ecx, ecx
mov al, byte [ebp + 0x5b9]
mov cl, byte [ebp + 0x5ba]
push eax
push ecx
mov ecx, dword [ebp + 0x19438]
call fcn.00446370
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub eax, 2
push eax
mov eax, dword [esp + 0x1c]
push 1
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
push 0
mov ecx, ebp
call fcn.00434680
lea eax, [esp + 0x68]
mov ecx, 0x4edd10
push eax
push 0x138
call fcn.004495e0
jmp 0x42d1e7
mov ecx, dword [ebp + 0x19438]
call fcn.00446290
test eax, eax
je 0x42d14d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.004363d0
test eax, eax
je 0x42cf58
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.004363d0
test eax, eax
je 0x42cf82
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.004363d0
test eax, eax
jne 0x42cf8b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004363d0
test eax, eax
je 0x42cf8b
push 1
mov ecx, ebp
call fcn.004362d0
mov ecx, 0x494280
call fcn.00405820
test eax, eax
je 0x42cfad
mov eax, dword [esp + 0x24]
push 0
push 0
push eax
lea ecx, [ebp + 0x17be4]
call fcn.00458a60
mov eax, dword [ebp + 0x19450]
xor ebx, ebx
cmp eax, ebx
je 0x42d064
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
mov ecx, dword [ebp + 0x19438]
call fcn.00446160
mov ecx, dword [ebp + 0x19438]
push ebx
mov edi, eax
call fcn.00446210
mov ecx, dword [ebp + 0x19438]
push 1
call fcn.00446210
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x19438]
mov dx, word [eax + 4]
mov ax, word [eax]
push edx
push eax
call fcn.00445f90
mov byte [esp + 0x2c], al
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.00445f00
add esp, 4
test eax, eax
je 0x42d021
push ebx
mov ecx, ebp
call fcn.004300d0
mov ecx, dword [ebp + 0x19438]
push 0
push 0
call fcn.00446370
mov ecx, dword [esp + 0x20]
sub eax, 2
push eax
push 1
push edi
push ecx
push 0
mov ecx, ebp
call fcn.0042b750
mov ecx, dword [ebp + 0x19438]
call fcn.00446370
test eax, eax
jne 0x42d1e7
mov ecx, esi
call fcn.0041de00
jmp 0x42d1e7
mov ecx, dword [ebp + 0x19438]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.00446160
push 0
lea ecx, [ebp + 0x58c]
mov ebx, eax
mov dword [esp + 0x40], 0
mov word [esp + 0x46], 3
call fcn.00449910
mov esi, dword [esp + 0x18]
mov ecx, 8
movzx ax, al
lea edi, [esp + 0x44]
mov word [esp + 0x40], ax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x19438]
push 0
mov dword [esp + 0x68], ebx
call fcn.00446210
mov ecx, dword [ebp + 0x19438]
push 1
call fcn.00446210
mov ecx, ebp
call fcn.00435c10
cmp dword [ebp + 0x5bc], 3
jge 0x42d0fe
mov dl, byte [ebp + 0x5ba]
mov cl, byte [ebp + 0x5b9]
inc dl
mov al, dl
mov byte [ebp + 0x5ba], dl
cmp al, cl
jbe 0x42d105
mov byte [ebp + 0x5b9], al
jmp 0x42d105
mov byte [ebp + 0x5ba], 0
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp + 0x5b9]
mov dl, byte [ebp + 0x5ba]
push ecx
mov ecx, dword [ebp + 0x19438]
push edx
call fcn.00446370
sub eax, 2
mov ecx, ebp
push eax
mov eax, dword [esp + 0x24]
push 1
push ebx
push eax
push 0
call fcn.0042b750
lea ecx, [esp + 0x3c]
push ecx
push 0x2c
mov ecx, 0x4edd10
call fcn.004495e0
jmp 0x42d1e7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, ebp
call fcn.004363d0
test eax, eax
jne 0x42d16b
push 1
mov ecx, ebp
call fcn.004362d0
mov ecx, dword [ebp + 0x19438]
push 1
call fcn.00446210
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push ecx
push edx
mov ecx, esi
call fcn.0041e2f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, esi
call fcn.0041e2f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x19438]
push edx
push eax
push 0
call fcn.00446190
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push ecx
push edx
mov ecx, esi
call fcn.0041e220
mov ecx, 0x494280
call fcn.00405820
test eax, eax
je 0x42d1e7
mov eax, dword [esp + 0x24]
push 0
push 0
push eax
lea ecx, [ebp + 0x17be4]
call fcn.00458a60
lea ecx, [esp + 0x24]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x19c
ret 0xc