Function at 0x581f40
Capabilities:
Delete file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebx + 0x5d8], edx
call fcn.00475e7c
cmp dword [ebp + 0x1c], 1
jne 0x581f75
test eax, eax
jne 0x581f75
mov dword [ebp + 0x1c], 2
cmp dword [ebp + 0x1c], 2
jne 0x581f9b
cmp dword [0x7ccc98], 0
jne 0x581f8b
mov ecx, 0x10
jmp 0x581f91
mov ecx, dword [0x7ccc98]
cmp ecx, 0x20
jne 0x581f9b
xor eax, eax
mov dword [ebp + 0x1c], eax
lea edx, [ebx + 0x38]
push edx
push 0x5f5c60
push 3
push 0
push 0x5f5c00
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jge 0x581fcf
push str.CLSID_FilterGraph
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea edx, [ebp - 4]
push edx
push 0x5f5c90
push 1
push 0
push 0x5f5c10
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jge 0x582003
push str.IAMMultimedia
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov eax, dword [ebx + 0x38]
push eax
push 1
push 0
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x30]
test eax, eax
jge 0x582031
push 0x5f9d62
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea edx, [ebx + 0x3c]
push edx
push 0x5f5c50
mov ecx, dword [ebx + 0x38]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x58205f
push str.IID_IMediaControl
lea edx, [ebp - 0x12c]
push edx
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea ecx, [ebx + 0x34]
push ecx
push 0x5f5be0
mov eax, dword [ebp + 8]
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x58208d
push str.DirectDraw4
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
push 0
push 0
push 0x5f5d00
mov eax, dword [ebx + 0x34]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x3c]
test eax, eax
jge 0x5820c0
push 0x5f9dfd
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
push 0
push 1
push 0x5f5cf0
push 0
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x3c]
test eax, eax
jge 0x5820f1
push 0x5f9e30
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
push edi
lea esi, [ebx + 0x9c]
push esi
call fcn.0045e850
add esp, 8
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 0
lea edx, [ebp - 0x334]
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
je 0x5822c1
mov dword [ebp - 0x1c], 0x100000
push 0x5f9e64
lea edx, [ebp - 0x12c]
push edx
call fcn.0045e850
add esp, 8
push edi
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e878
add esp, 8
push 0x5f9e6e
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e878
add esp, 8
cmp dword [ebx + 0x98], 1
je 0x582a65
push 1
push 0
push esi
call fcn.00462b6c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x582a65
push 2
push 0
mov edi, dword [ebp - 8]
push edi
call fcn.00462ba8
add esp, 0xc
push edi
call fcn.00462b98
pop ecx
mov dword [ebp - 0x18], eax
push 0
push 0
push edi
call fcn.00462ba8
add esp, 0xc
push 0
push 0x5f9e82
push 0x100000
call fcn.0045e2c4
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5821e9
push edi
call fcn.00462b88
pop ecx
jmp 0x582a65
push esi
call fcn.0046304c
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x58220f
push edi
call fcn.00462b88
pop ecx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045e400
pop ecx
jmp 0x582a65
mov dword [ebx + 0x98], 1
xor edi, edi
cmp edi, dword [ebp - 0x18]
jae 0x582265
mov esi, edi
sub esi, dword [ebp - 0x18]
cmp esi, 0x100000
jbe 0x582232
mov esi, 0x100000
mov eax, dword [ebp - 8]
push eax
push 1
push esi
mov edx, dword [ebp - 0x10]
push edx
call fcn.00462bc4
add esp, 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.DLL_WriteFile
cmp esi, dword [ebp - 0x14]
jne 0x582265
add edi, esi
cmp edi, dword [ebp - 0x18]
jb 0x582220
mov ecx, dword [ebp - 8]
push ecx
call fcn.00462b88
pop ecx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x10]
push edx
call fcn.0045e400
pop ecx
push 0x104
lea ecx, [ebp - 0x334]
lea esi, [ebx + 0x9c]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 0
lea eax, [ebp - 0x334]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x40]
test eax, eax
je 0x5822c1
push esi
call sub.KERNEL32.DLL_DeleteFileA
jmp 0x582a65
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebx + 0x40]
push ecx
push 0x5f5c30
mov eax, dword [ebx + 0x38]
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jge 0x5822fa
push 0x5f9e83
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea eax, [ebx + 0x70]
push eax
mov edx, dword [ebx + 0x40]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebx + 0x44]
push eax
push 0x5f5c20
mov edx, dword [ebx + 0x38]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jge 0x582335
push str.BasicAudio
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea edx, [ebx + 0x18]
push edx
push 0x5f5d00
mov ecx, dword [ebx + 0x14]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jge 0x582364
push 0x5f9eea
lea edx, [ebp - 0x12c]
push edx
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea ecx, [ebx + 0x1c]
push ecx
push 0x5f5c80
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jge 0x582392
push str.AMMediaStream
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
lea eax, [ebx + 0x20]
push eax
push 0x5f5c70
mov edx, dword [ebx + 0x18]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jge 0x5823c0
push str.DirectDraw
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
xor edx, edx
mov dword [ebp - 0x24], edx
call fcn.00475e7c
mov esi, eax
test esi, esi
je 0x5824ea
cmp dword [ebp + 0x1c], 1
jne 0x5824ea
push 0x6c
push 0
lea eax, [ebp - 0x3a0]
push eax
call fcn.0045ea68
add esp, 0xc
lea edx, [ebp - 0x20]
mov dword [ebp - 0x3a0], 0x6c
push edx
lea ecx, [ebp - 0x40c]
push ecx
push 0
push 0
mov eax, dword [ebx + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [ebp - 0x400], 0
jbe 0x582425
cmp dword [ebp - 0x404], 0
ja 0x58243e
push 0x5f9fa4
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
push 0x6c
push 0
lea eax, [ebp - 0x3a0]
push eax
call fcn.0045ea68
mov dword [ebp - 0x3a0], 0x6c
mov dword [ebp - 0x39c], 0x1007
mov dword [ebp - 0x338], 0x4080
mov edx, dword [ebp - 0x400]
add esp, 0xc
mov dword [ebp - 0x394], edx
lea edi, [ebp - 0x358]
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x398], ecx
push esi
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
call fcn.00475e18
lea edx, [ebp - 0x28]
push edx
push 0x5f5bc0
push eax
mov eax, dword [eax]
call dword [eax]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x3a0]
push eax
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
test eax, eax
je 0x5824dc
push 0x5f9fcb
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
jmp 0x582799
cmp dword [ebp + 0x1c], 2
jne 0x58262d
push 0x6c
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.0045ea68
add esp, 0xc
lea edx, [ebp - 0x20]
mov dword [ebp - 0x478], 0x6c
push edx
lea ecx, [ebp - 0x40c]
push ecx
push 0
push 0
mov eax, dword [ebx + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [ebp - 0x400], 0
jbe 0x58253b
cmp dword [ebp - 0x404], 0
ja 0x582554
push 0x5f9ffe
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
push 0x6c
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.0045ea68
mov dword [ebp - 0x478], 0x6c
mov dword [ebp - 0x474], 0x1007
mov dword [ebp - 0x410], 0x840
mov edx, dword [ebp - 0x400]
add esp, 0xc
mov dword [ebp - 0x46c], edx
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x430], 0x20
mov dword [ebp - 0x420], 0xff0000
mov dword [ebp - 0x41c], 0xff00
mov dword [ebp - 0x418], 0xff
mov dword [ebp - 0x424], 0x18
mov dword [ebp - 0x42c], 0x40
call fcn.00475e18
lea edx, [ebp - 0x28]
push edx
push 0x5f5bc0
push eax
mov eax, dword [eax]
call dword [eax]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x478]
push eax
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
test eax, eax
je 0x58261f
push 0x5fa025
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
jmp 0x582799
push 0x6c
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.0045ea68
add esp, 0xc
lea edx, [ebp - 0x20]
mov dword [ebp - 0x478], 0x6c
push edx
lea ecx, [ebp - 0x40c]
push ecx
push 0
push 0
mov eax, dword [ebx + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [ebp - 0x400], 0
jbe 0x582674
cmp dword [ebp - 0x404], 0
ja 0x58268d
push 0x5fa058
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0045e850
add esp, 8
jmp 0x582a65
push 0x6c
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.0045ea68
mov dword [ebp - 0x478], 0x6c
mov dword [ebp - 0x474], 0x1007
mov dword [ebp - 0x410], 0x840
mov edx, dword [ebp - 0x400]
add esp, 0xc
mov dword [ebp - 0x46c], edx
cmp dword [0x7efb18], 1
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x470], ecx
jne 0x5826e8
cmp dword [0x7ccc90], 8
jne 0x5826ec
xor eax, eax
jmp 0x5826f1
mov eax, 1
dec eax
jne 0x582736
push 0
push 0
cmp dword [0x7ccc98], 0
jne 0x582708
mov edx, 0x10
jmp 0x58270e
mov edx, dword [0x7ccc98]
cmp edx, 0x10
jne 0x582717
xor eax, eax
jmp 0x58271c
mov eax, 1
push eax
call fcn.0047a154
add esp, 0xc
mov esi, eax
lea edi, [ebp - 0x430]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
jmp 0x58274a
call fcn.0059258c
mov esi, eax
lea edi, [ebp - 0x430]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
call fcn.00475e18
lea edx, [ebp - 0x28]
push edx
push 0x5f5bc0
push eax
mov eax, dword [eax]
call dword [eax]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x478]
push eax
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
test eax, eax
je 0x582790
push str.DirectDrawSurface
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x24]
mov dword [ebx + 0x8c], eax
push esi
push 1
push 0
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebx + 0x20]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x34]
test eax, eax
jge 0x582804
cmp dword [ebp - 0x24], 0
je 0x5827cf
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
xor eax, eax
mov dword [ebx + 0x8c], eax
push esi
push 0
push 0
push 0
mov edx, dword [ebx + 0x20]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x34]
test eax, eax
jge 0x582804
push 0x5fa0b2
lea eax, [ebp - 0x12c]
push eax
call fcn.0045e850
add esp, 8
jmp 0x582a65
cmp dword [ebp - 0x24], 0
je 0x582813
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
lea eax, [ebx + 4]
lea edx, [ebx + 0x28]
push eax
push edx
mov ecx, dword [ebx + 0x24]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
jge 0x582841
push 0x5fa0dd
lea edx, [ebp - 0x12c]
push edx
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov dword [ebx + 0x7c], ecx
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 8]
mov dword [ebx + 0x80], eax
cmp dword [ebp + 0x14], 0
je 0x582879
cmp dword [ebx + 0x84], 0
je 0x582871
mov edx, dword [ebx + 0x7c]
sar edx, 1
jns 0x582874
adc edx, 0
jmp 0x582874
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
cmp dword [ebp + 0x18], 0
je 0x58288a
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebx + 0x80]
mov dword [ecx], eax
push 4
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.0045ea68
add esp, 0xc
lea ecx, [ebp - 0x4e4]
push 0x6c
push 0
push ecx
call fcn.0045ea68
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4e4], 0x6c
push eax
mov edx, dword [ebx + 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x38]
lea eax, [ebp - 0x4e4]
push eax
mov edx, dword [ebx + 0x28]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x58]
test byte [ebp - 0x2b], 8
setne al
and eax, 1
mov dword [ebx + 0x78], eax
cmp dword [ebx + 0x8c], 1
jne 0x58294d
lea edx, [ebx + 0x2c]
push edx
push 0x5f5bb0
mov ecx, dword [ebx + 0x28]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x582918
push str.IDirectDrawSurface7
lea edx, [ebp - 0x12c]
push edx
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov dword [ebp - 0x560], 0x7c
lea ecx, [ebp - 0x560]
push ecx
mov eax, dword [ebx + 0x2c]
push eax
mov edx, dword [eax]
call dword [edx + 0x58]
lea ecx, [ebx + 0x1a8]
push ecx
lea eax, [ebp - 0x518]
push eax
call fcn.00475f3c
add esp, 8
jmp 0x582a05
lea edx, [ebx + 0x30]
push edx
push 0x5f5ba0
mov ecx, dword [ebx + 0x28]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x58297b
push str.IDirectDrawSurface4
lea edx, [ebp - 0x12c]
push edx
call fcn.0045e850
add esp, 8
jmp 0x582a65
mov dword [ebp - 0x5dc], 0x7c
lea ecx, [ebp - 0x5dc]
push ecx
mov eax, dword [ebx + 0x30]
push eax
mov edx, dword [eax]
call dword [edx + 0x58]
lea ecx, [ebx + 0x1a8]
push ecx
lea eax, [ebp - 0x594]
push eax
call fcn.00475f3c
add esp, 8
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x5cc], edx
mov ecx, dword [ebx + 0x80]
mov dword [ebx + 0x5d0], ecx
movzx eax, word [ebx + 0x1aa]
imul dword [ebx + 0x7c]
mov dword [ebx + 0x5d4], eax
mov esi, eax
add esi, 3
test esi, esi
jns 0x5829dc
add esi, 3
sar esi, 2
shl esi, 2
mov dword [ebx + 0x5d4], esi
push 0
push 0x5fa1a6
imul esi, dword [ebx + 0x80]
push esi
call fcn.0045e3c8
add esp, 0xc
mov dword [ebx + 0x5d8], eax
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebx + 0x1a0], eax
xor eax, eax
mov dword [ebx + 0x1a4], eax
mov dword [ebx + 0x50], 0xffffffff
mov dword [ebx + 0x54], 0xffffffff
mov dword [ebx + 0x60], 0xffffffff
mov dword [ebx + 0x64], 0xffffffff
mov dword [ebx + 0x68], 0xffffffff
push 0
call fcn.00460598
pop ecx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
lea edx, [ebx + 0x48]
push edx
mov ecx, dword [ebx + 0x20]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x38]
xor eax, eax
jmp 0x582b7c
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x582a77
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x582a89
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x20], ecx
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x582a9b
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x24], ecx
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x582aad
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x28], ecx
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x582abf
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x30], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x582ad1
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x2c], ecx
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x582ae3
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
cmp dword [ebx + 0x14], 0
je 0x582af7
mov eax, dword [ebx + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x14], ecx
cmp dword [ebx + 0x34], 0
je 0x582b0b
mov eax, dword [ebx + 0x34]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x34], ecx
cmp dword [ebp - 4], 0
je 0x582b1f
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x38], 0
je 0x582b33
mov eax, dword [ebx + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x38], ecx
cmp dword [ebx + 0x3c], 0
je 0x582b47
mov eax, dword [ebx + 0x3c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x40], 0
je 0x582b5b
mov eax, dword [ebx + 0x40]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x40], ecx
cmp dword [ebx + 0x44], 0
je 0x582b6f
mov eax, dword [ebx + 0x44]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor ecx, ecx
mov dword [ebx + 0x44], ecx
lea eax, [ebp - 0x12c]
push eax
call fcn.0045df78
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret