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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x72f61b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 0x88]
test ebx, ebx
mov al, byte [esi + 0x75]
mov cl, byte [esi + 0x76]
push edi
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov dword [esp + 0x38], ebx
mov edi, 0xffff80cd
mov ebp, DirectSoundCreate
je 0x57ba79
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x57b8e4
cmp dword [esi + 0xec], edi
jne 0x57b8e4
call fcn.0041d1b0
jmp 0x57b8ef
mov eax, dword [esi + 0xec]
cdq
xor eax, edx
sub eax, edx
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
cmp eax, ecx
jne 0x57b93f
cmp dword [esi + 0xec], ebp
mov ebx, ebp
je 0x57b90d
mov byte [esi + 0x79], 1
mov ecx, esi
call fcn.0058a2c0
cmp eax, ebp
jle 0x57b921
mov ecx, esi
call fcn.0058a2c0
mov ebx, eax
mov ecx, esi
call fcn.0058a750
cmp ebx, eax
jle 0x57b935
mov ecx, esi
call fcn.0058a750
mov ebx, eax
mov dword [esi + 0xec], ebx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x57b955
cmp dword [esi + 0xf0], edi
jne 0x57b955
call fcn.0041d1e0
jmp 0x57b960
mov eax, dword [esi + 0xf0]
cdq
xor eax, edx
sub eax, edx
mov ecx, dword [esi + 0xa8]
sub ecx, dword [esi + 0xa4]
cmp eax, ecx
jne 0x57b9ac
cmp dword [esi + 0xf0], ebp
mov edi, ebp
je 0x57b97e
mov byte [esi + 0x79], 1
mov ecx, esi
call fcn.0058a2f0
cmp eax, ebp
jle 0x57b992
mov ecx, esi
call fcn.0058a2f0
mov edi, eax
mov ecx, esi
call fcn.0058a780
cmp edi, eax
jle 0x57b9a6
mov ecx, esi
call fcn.0058a780
mov edi, eax
mov dword [esi + 0xf0], edi
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x57b9b7
xor ecx, ecx
jmp 0x57b9d8
mov ecx, dword [eax + 0x88]
test ecx, ecx
jne 0x57b9d8
mov ecx, dword [eax + 0x88]
test ecx, ecx
jne 0x57b9d8
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x57b9bd
mov ecx, dword [0x7d1bac]
mov edx, dword [ecx]
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [edx + 0x98]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x57b9f3
call fcn.00404630
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x57b9fe
xor ecx, ecx
jmp 0x57ba1f
mov ecx, dword [eax + 0x88]
test ecx, ecx
jne 0x57ba1f
mov ecx, dword [eax + 0x88]
test ecx, ecx
jne 0x57ba1f
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x57ba04
mov ecx, dword [0x7d1bac]
add ecx, 0x90
call fcn.0058c3d0
mov ecx, 0x7cb478
call fcn.004d51e0
push 0x1ff
mov ecx, ebx
mov edi, eax
call fcn.006ea1b0
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [0x7c67e0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
add esp, 0xc
push edi
mov ecx, eax
call fcn.004ee350
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x57ba79
call fcn.00404630
mov dword [esi + 0x88], 0
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.00581060
mov edx, dword [eax + 8]
test edx, edx
push 1
lea ecx, [esp + 0x5c]
sete bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
je 0x57bab2
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0xffff8069
mov ecx, esi
mov edi, esi
call fcn.0058b0a0
cmp ax, 0x80bd
mov ebx, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
jne 0x57bb1e
test esi, esi
je 0x57bafe
cmp edi, dword [0x7d1c28]
je 0x57bafe
cmp edi, dword [0x7d1c74]
je 0x57bafe
lea eax, [edi + 0x174]
push 0x7c6180
push eax
call ebx
add esp, 8
test al, al
jne 0x57bb10
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x57bad2
mov ecx, dword [0x7d1c28]
mov eax, dword [ecx + 0x178]
test eax, eax
jne 0x57bb2d
jmp 0x57bb28
mov edi, dword [edi + 0x178]
test edi, edi
je 0x57bb28
mov eax, edi
jmp 0x57bb2d
mov eax, dword [esi + 0x178]
test eax, eax
jne 0x57bb2d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [0x7c67e0]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x14]
push eax
call fcn.004ee0a0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x57bb4b
inc dword [ebp + 4]
test ebp, ebp
mov dword [esp + 0x70], 0
jne 0x57bb6c
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0xffff8069
mov ecx, esi
mov edi, esi
call fcn.0058b0a0
cmp ax, 0x80bd
jne 0x57bbd6
test esi, esi
je 0x57bbb6
cmp edi, dword [0x7d1c28]
je 0x57bbb6
cmp edi, dword [0x7d1c74]
je 0x57bbb6
lea eax, [edi + 0x174]
push 0x7c6180
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
jne 0x57bbc8
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x57bb86
mov ecx, dword [0x7d1c28]
mov eax, dword [ecx + 0x178]
test eax, eax
jne 0x57bbe5
jmp 0x57bbe0
mov edi, dword [edi + 0x178]
test edi, edi
je 0x57bbe0
mov eax, edi
jmp 0x57bbe5
mov eax, dword [esi + 0x178]
test eax, eax
jne 0x57bbe5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
mov ecx, ebp
call fcn.006ea1a0
mov ecx, dword [0x7c67e0]
push ebp
call fcn.0048e930
mov edi, eax
test edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
je 0x57bc0a
inc dword [edi + 4]
test edi, edi
mov byte [esp + 0x70], 1
je 0x57bc27
push 0x7ddeb8
mov ecx, edi
call fcn.004113d0
neg al
sbb eax, eax
and edi, eax
jmp 0x57bc29
xor edi, edi
cmp ebp, edi
je 0x57bc41
mov ecx, ebp
call fcn.00404630
test edi, edi
mov ebp, edi
mov dword [esp + 0x30], ebp
je 0x57bc41
inc dword [edi + 4]
mov ecx, dword [esi + 0x88]
cmp ecx, ebp
je 0x57bc61
test ecx, ecx
je 0x57bc54
call fcn.00404630
test ebp, ebp
mov dword [esi + 0x88], ebp
je 0x57bc61
inc dword [ebp + 4]
mov eax, dword [esi + 8]
test eax, eax
jne 0x57bc6d
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
mov ecx, ebp
call fcn.006ea1a0
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x50]
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x57bc8a
xor ecx, ecx
jmp 0x57bcab
mov ecx, dword [eax + 0x88]
test ecx, ecx
jne 0x57bcab
mov ecx, dword [eax + 0x88]
test ecx, ecx
jne 0x57bcab
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x57bc90
mov ecx, dword [0x7d1bac]
mov eax, dword [ecx]
push 1
push ebp
call dword [eax + 0x94]
push 0
push 0
push 0
lea ecx, [esp + 0x64]
call fcn.004057e0
push eax
lea ecx, [ebp + 0x30]
call fcn.0040a7e0
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
lea ecx, [esi + 0x40]
push eax
push edx
call fcn.0065a3a0
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
lea ecx, [esi + 0x50]
push eax
push edx
call fcn.0058aaa0
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
lea ecx, [esi + 0x60]
push eax
push edx
call fcn.0058aaa0
mov eax, DirectSoundCreate
mov ecx, DirectSoundCreate
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa8], eax
mov eax, dword [ebp + 0x9c]
xor edi, edi
test eax, eax
mov dword [esp + 0x34], edi
jbe 0x57c00c
cmp eax, edi
jbe 0x57bff9
mov ecx, dword [ebp + 0x94]
mov ebx, dword [ecx + edi*4]
test ebx, ebx
je 0x57bff9
push 0x7de550
mov ecx, ebx
call fcn.004113d0
neg al
sbb eax, eax
and eax, ebx
test eax, eax
mov dword [esp + 0x40], eax
je 0x57bff9
mov ecx, dword [eax + 0x98]
cmp word [ecx + 8], 0
mov eax, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x1c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
jbe 0x57bfd8
add ebx, 0x14
add eax, 8
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x3c]
test edi, edi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x57bdd2
mov eax, dword [edx - 8]
mov dword [esp + 0x20], eax
mov eax, dword [edx - 4]
mov dword [esp + 0x24], eax
fld dword [esp + 0x18]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
jne 0x57bdf8
fld dword [esp + 0x1c]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x57bedf
mov cx, word [ecx + 8]
mov eax, dword [esp + 0x2c]
inc eax
and ecx, 0xffff
cmp eax, ecx
jge 0x57bedf
test edi, edi
je 0x57bedf
fld dword [esp + 0x18]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x57be7b
fld dword [ebx - 0x14]
fsub dword [ebx - 8]
fcom dword [0x74b444]
fnstsw ax
test ah, 0x41
jne 0x57be47
fld dword [esp + 0x20]
fsub dword [edx]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x57be7b
fld dword [ebx - 8]
fsub dword [ebx - 0x14]
fcom dword [0x74b444]
fnstsw ax
test ah, 0x41
jne 0x57be79
fld dword [edx]
fsub dword [esp + 0x20]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x57bedf
fld dword [ebx - 0xc]
fsub dword [ebx]
fcom dword [0x74b444]
fnstsw ax
test ah, 0x41
jne 0x57beab
fld dword [esp + 0x24]
fsub dword [edx + 4]
fdiv st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x57bedf
fld dword [ebx]
fsub dword [ebx - 0xc]
fcom dword [0x74b444]
fnstsw ax
test ah, 0x41
jne 0x57bedd
fld dword [edx + 4]
fsub dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [ebx - 0x14]
sub esp, 8
fadd dword [0x746498]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld dword [ebx - 0xc]
fadd dword [0x746498]
mov edi, eax
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ebp, eax
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x40]
lea edx, [esp + 0x58]
push edx
push eax
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebp
call fcn.0065a180
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 0x50]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.0058a8f0
mov eax, dword [esi + 0x9c]
cmp eax, edi
jl 0x57bf62
mov eax, edi
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0xa0]
cmp eax, edi
jg 0x57bf74
mov eax, edi
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xa4]
cmp eax, ebp
jl 0x57bf86
mov eax, ebp
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xa8]
cmp eax, ebp
jle 0x57bf98
mov ebp, eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
add ecx, 8
mov dword [esi + 0xa8], ebp
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x98]
mov ax, word [ecx + 8]
inc edx
add ebx, 0xc
mov dword [esp + 0x2c], edx
and eax, 0xffff
cmp edx, eax
jl 0x57bda8
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
lea ecx, [esi + 0x60]
lea edx, [esp + 0x50]
push edx
push eax
call fcn.0058a8f0
mov eax, dword [ebp + 0x9c]
inc edi
cmp eax, edi
mov dword [esp + 0x34], edi
ja 0x57bd3c
mov ecx, dword [esi + 0x28]
test ecx, ecx
mov ebx, 0xffff80cd
je 0x57c027
cmp dword [esi + 0xec], ebx
jne 0x57c027
call fcn.0041d1b0
jmp 0x57c032
mov eax, dword [esi + 0xec]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7fffffff
jne 0x57c096
mov eax, dword [esi + 0xa0]
sub eax, dword [esi + 0x9c]
mov edi, eax
cmp dword [esi + 0xec], edi
je 0x57c053
mov byte [esi + 0x79], 1
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x57c069
cmp dword [esi + 0xfc], ebx
jne 0x57c069
call fcn.0058a2c0
jmp 0x57c06f
mov eax, dword [esi + 0xfc]
cmp edi, eax
jge 0x57c07c
mov ecx, esi
call fcn.0058a2c0
mov edi, eax
mov ecx, esi
call fcn.0058a750
cmp edi, eax
jle 0x57c090
mov ecx, esi
call fcn.0058a750
mov edi, eax
mov dword [esi + 0xec], edi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x57c0ac
cmp dword [esi + 0xf0], ebx
jne 0x57c0ac
call fcn.0041d1e0
jmp 0x57c0b7
mov eax, dword [esi + 0xf0]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7fffffff
jne 0x57c11b
mov eax, dword [esi + 0xa8]
sub eax, dword [esi + 0xa4]
mov edi, eax
cmp dword [esi + 0xf0], edi
je 0x57c0d8
mov byte [esi + 0x79], 1
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x57c0ee
cmp dword [esi + 0x100], ebx
jne 0x57c0ee
call fcn.0058a2f0
jmp 0x57c0f4
mov eax, dword [esi + 0x100]
cmp edi, eax
jge 0x57c101
mov ecx, esi
call fcn.0058a2f0
mov edi, eax
mov ecx, esi
call fcn.0058a780
cmp edi, eax
jle 0x57c115
mov ecx, esi
call fcn.0058a780
mov edi, eax
mov dword [esi + 0xf0], edi
mov ecx, dword [esi + 0xa8]
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x98], ecx
mov ecx, dword [esi + 0xa0]
sub ecx, eax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
mov dword [esp + 0x3c], eax
sub esp, 8
fmul dword [0x746498]
mov dword [esi + 0x94], eax
fiadd dword [esp + 0x44]
fadd dword [0x746498]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0xa4]
mov edi, eax
mov eax, dword [esi + 0xa8]
sub eax, ecx
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edi
fmul dword [0x746498]
fiadd dword [esp + 0x44]
fadd dword [0x746498]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x2c], eax
mov dword [esi + 0xb0], eax
xor eax, eax
mov dword [esi + 0xac], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x44]
test eax, eax
mov ebx, dword [esp + 0x38]
je 0x57c32e
mov ecx, dword [esi + 0x48]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp dword [esp + 0x24], edx
jae 0x57c32e
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ecx + 4]
add edx, ecx
cmp eax, 0x80000000
mov ecx, dword [edx + 8]
mov edi, eax
mov ebx, ecx
jge 0x57c211
mov eax, DirectSoundCreate
mov ebp, dword [esp + 0x34]
cmp eax, ebp
jle 0x57c21b
mov eax, ebp
cmp ecx, 0x80000000
jge 0x57c228
mov ecx, DirectSoundCreate
mov ebp, dword [esp + 0x2c]
cmp ecx, ebp
jle 0x57c232
mov ecx, ebp
cmp edi, eax
jne 0x57c23a
cmp ebx, ecx
je 0x57c240
mov eax, edi
mov ecx, ebx
jmp 0x57c243
mov byte [edx], 1
dec ebp
cmp eax, 0x80000000
mov dword [esp + 0x20], ebp
mov edi, eax
mov ebx, ecx
jge 0x57c258
mov eax, DirectSoundCreate
mov edx, dword [esp + 0x34]
cmp eax, edx
jle 0x57c262
mov eax, edx
mov ebp, dword [esp + 0x20]
cmp ecx, ebp
jge 0x57c26c
mov ecx, ebp
cmp ecx, 0x7fffffff
jle 0x57c279
mov ecx, DirectSoundCreate
cmp edi, eax
jne 0x57c281
cmp ebx, ecx
je 0x57c28b
mov ebp, dword [esp + 0x28]
mov eax, edi
mov ecx, ebx
jmp 0x57c296
mov edi, dword [esi + 0x44]
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 2
dec edx
cmp eax, edx
mov edi, eax
mov ebx, ecx
jge 0x57c2a1
mov eax, edx
cmp eax, 0x7fffffff
jle 0x57c2ad
mov eax, DirectSoundCreate
cmp ecx, 0x80000000
jge 0x57c2ba
mov ecx, DirectSoundCreate
cmp ecx, dword [esp + 0x2c]
jle 0x57c2c4
mov ecx, dword [esp + 0x2c]
cmp edi, eax
jne 0x57c2cc
cmp ebx, ecx
je 0x57c2d2
mov eax, edi
mov ecx, ebx
jmp 0x57c2d9
mov edi, dword [esi + 0x44]
mov byte [edi + ebp], 3
cmp eax, edx
mov edi, eax
mov ebx, ecx
jge 0x57c2e3
mov eax, edx
cmp eax, 0x7fffffff
jle 0x57c2ef
mov eax, DirectSoundCreate
mov edx, dword [esp + 0x20]
cmp ecx, edx
jge 0x57c2f9
mov ecx, edx
cmp ecx, 0x7fffffff
jle 0x57c306
mov ecx, DirectSoundCreate
cmp edi, eax
jne 0x57c315
cmp ebx, ecx
jne 0x57c315
mov eax, dword [esi + 0x44]
mov byte [eax + ebp], 4
mov ecx, dword [esp + 0x24]
inc ecx
add ebp, 0xc
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
jmp 0x57c1c3
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x40], edi
test edi, edi
mov byte [esp + 0x70], 2
je 0x57c35b
mov ecx, edi
call fcn.006c5790
mov dword [edi], 0x74b418
mov dword [edi + 0x14], esi
mov eax, edi
jmp 0x57c35d
xor eax, eax
push eax
mov ecx, ebp
mov byte [esp + 0x74], 1
mov dword [esi + 0x8c], eax
call fcn.006ea220
mov ecx, ebp
call fcn.006eb0e0
mov ecx, ebp
call fcn.006eb380
test ebx, ebx
mov cl, byte [esp + 0x16]
mov dl, byte [esp + 0x17]
mov byte [esi + 0x75], cl
mov byte [esi + 0x76], dl
mov byte [esi + 0x78], 1
mov byte [esi + 0x79], 1
mov byte [esi + 0x7a], 1
mov byte [esp + 0x70], 0
je 0x57c3ae
dec dword [ebx + 4]
jne 0x57c3ae
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test ebp, ebp
mov dword [esp + 0x70], 0xffffffff
je 0x57c3c8
dec dword [ebp + 4]
jne 0x57c3c8
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov ecx, dword [esp + 0x68]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret