Function at 0x4810a0
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
sub esp, 0x81c
push ebx
mov ebx, dword [esp + 0x824]
push ebp
push esi
mov al, byte [ebx + 4]
mov esi, dword [esp + 0x834]
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x1c], edi
test al, 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
je 0x481116
mov ax, word [esi + 0x5734]
and eax, 0x4000
cmp eax, 0x4000
je 0x481116
cmp dword [ebx + 0x28], edi
jne 0x481116
push esi
push ebx
call fcn.0047e760
add esp, 8
test eax, eax
jne 0x481116
mov ecx, dword [esi + 0xd270]
lea edx, [esi + 0xd064]
add ecx, 4
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x28], ecx
mov dword [esp + 0x1c], 1
mov eax, dword [esi + 0x928]
test eax, eax
jne 0x481131
mov ecx, dword [ebx + 0x58]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharToOemA]
jmp 0x481140
mov edx, dword [ebx + 0x58]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x92c]
mov ecx, 0x14
test eax, eax
je 0x481426
test byte [esi + 0x5735], 0x10
je 0x481163
mov edi, 7
jmp 0x4811b1
mov eax, dword [esi + 0x8c4]
test eax, eax
jne 0x48117c
mov edx, dword [ebx + 0x1c]
test edx, edx
jl 0x481185
jg 0x48117c
cmp dword [ebx + 0x18], 0xffffffff
jb 0x481185
mov edi, 1
mov dword [esp + 0x18], edi
test eax, eax
jne 0x481198
mov eax, dword [ebx + 0x14]
test eax, eax
jl 0x48119f
jg 0x481198
cmp dword [ebx + 0x10], 0xffffffff
jb 0x48119f
or edi, 2
mov dword [esp + 0x18], edi
mov eax, dword [ebx + 0x44]
test eax, eax
jl 0x4811b5
jg 0x4811ae
cmp dword [ebx + 0x40], 0xffffffff
jb 0x4811b5
or edi, 4
mov dword [esp + 0x18], edi
lea eax, [edi - 1]
cmp eax, 6
ja case.default.0x4811c1
jmp dword [eax*4 + 0x481ba0]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x10], 0xc
add ecx, 0xc
push ecx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x4811f9
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov word [ebp], 1
mov word [ebp + 2], 8
mov edx, dword [ebx + 0x18]
mov dword [ebp + 4], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 8], eax
jmp 0x4813f7
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x10], 0xc
add ecx, 0xc
push ecx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x481247
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov word [ebp], 1
mov word [ebp + 2], 8
mov edx, dword [ebx + 0x10]
mov dword [ebp + 4], edx
mov eax, dword [ebx + 0x14]
mov dword [ebp + 8], eax
jmp 0x4813f7
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x10], ecx
add edx, ecx
push edx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x481290
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov word [ebp], 1
mov word [ebp + 2], 0x10
mov eax, dword [ebx + 0x18]
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 0x1c]
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x10], eax
jmp 0x4813f7
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x10], 0xc
add ecx, 0xc
push ecx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x4812ea
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov word [ebp], 1
mov word [ebp + 2], 8
mov edx, dword [ebx + 0x40]
mov dword [ebp + 4], edx
mov eax, dword [ebx + 0x44]
mov dword [ebp + 8], eax
jmp 0x4813f7
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x10], ecx
add edx, ecx
push edx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x481333
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov word [ebp], 1
mov word [ebp + 2], 0x10
mov eax, dword [ebx + 0x18]
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 0x1c]
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 0x40]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x44]
mov dword [ebp + 0x10], eax
jmp 0x4813f7
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x10], 0x1c
add ecx, 0x1c
push ecx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x48138d
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov word [ebp], 1
mov word [ebp + 2], 0x18
mov edx, dword [ebx + 0x18]
mov dword [ebp + 4], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 8], eax
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebx + 0x14]
mov dword [ebp + 0x10], edx
mov eax, dword [ebx + 0x40]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebx + 0x44]
mov dword [ebp + 0x18], ecx
jmp 0x4813f7
mov eax, dword [ebx + 0x28]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
jbe 0x4813f3
push eax
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x4813f7
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x81c
ret
mov dword [esp + 0x14], ebp
mov ecx, dword [ebx + 0x28]
test ecx, ecx
jbe 0x481426
test ebp, ebp
je 0x481426
mov edi, dword [esp + 0x10]
mov esi, dword [ebx + 0x50]
and edi, 0xffff
mov edx, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x838]
test byte [esi + 0x5735], 0x80
je 0x481468
mov eax, dword [esi + 0x573c]
cmp eax, 0xffff
mov eax, dword [esi + 0x5738]
jne 0x48144a
mov dword [esi + 0x573c], eax
jmp 0x481452
cmp eax, dword [esi + 0x5740]
je 0x481462
mov dword [esi + 0x5740], eax
mov dword [esi + 0x5748], 0
inc dword [esi + 0x5748]
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x20]
and eax, 0xffff
add eax, edi
xor edi, edi
add eax, edx
lea eax, [eax + ecx + 0x2e]
mov ecx, dword [esi + 0xa8]
cmp ecx, 0xffffffff
mov dword [esp + 0x20], eax
je 0x481780
mov ecx, dword [esi + 0x5768]
test ecx, ecx
jne 0x481780
push esi
call fcn.00484710
add esp, 4
cmp edx, edi
jg 0x4814ed
jl 0x4814ba
cmp eax, dword [esp + 0x20]
jae 0x4814ed
mov edx, dword [esp + 0x834]
push esi
push edx
push 0
call fcn.00484830
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4814ed
test ebp, ebp
je 0x4814e0
push ebp
call fcn.004ad74d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x481760
mov esi, dword [esp + 0x18]
mov dword [ebp], 0x2014b50
test esi, esi
je 0x481525
mov cx, word [ebx]
mov word [ebp + 4], cx
mov dx, word [ebx + 2]
mov word [ebp + 6], dx
jmp 0x481563
mov ax, word [ebx]
xor ecx, ecx
cmp word [ebx + 6], 9
mov edx, eax
sete cl
add ecx, 0x14
and edx, 0xff00
or ecx, edx
cmp ax, 0x2d
jb 0x48154b
mov word [ebp + 4], cx
jmp 0x48154f
mov word [ebp + 4], ax
mov ax, word [ebx + 2]
cmp ax, 0x2d
jb 0x48155f
mov word [ebp + 6], cx
jmp 0x481563
mov word [ebp + 6], ax
mov ax, word [ebx + 4]
mov word [ebp + 8], ax
mov cx, word [ebx + 6]
mov word [ebp + 0xa], cx
mov edx, dword [ebx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0x10], eax
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x48158b
jmp dword [eax*4 + 0x481bbc]
lea ecx, [ebp + 0x18]
mov dword [ecx], 0xffffffff
jmp 0x481621
mov ecx, dword [ebx + 0x18]
lea edx, [ebp + 0x14]
mov dword [ebp + 0x18], ecx
mov dword [edx], 0xffffffff
jmp 0x481627
lea ecx, [ebp + 0x18]
lea edx, [ebp + 0x14]
mov dword [ecx], 0xffffffff
mov dword [edx], 0xffffffff
jmp 0x481627
mov ecx, dword [ebx + 0x18]
lea eax, [ebp + 0x2a]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x14], edx
mov dword [eax], 0xffffffff
jmp 0x48162d
lea ecx, [ebp + 0x18]
lea eax, [ebp + 0x2a]
mov dword [ecx], 0xffffffff
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x14], edx
mov dword [eax], 0xffffffff
jmp 0x48162d
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x18], ecx
jmp 0x481607
lea ecx, [ebp + 0x18]
mov dword [ecx], 0xffffffff
lea edx, [ebp + 0x14]
lea eax, [ebp + 0x2a]
mov dword [edx], 0xffffffff
mov dword [eax], 0xffffffff
jmp 0x48162d
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x14], edx
mov eax, dword [ebx + 0x40]
mov dword [ebp + 0x2a], eax
mov cx, word [ebx + 0x20]
mov esi, dword [esp + 0x10]
mov word [ebp + 0x1c], cx
mov dx, word [ebx + 0x28]
add esi, edx
lea edi, [ebp + 0x2e]
mov ax, si
mov dword [esp + 0x10], esi
mov word [ebp + 0x1e], ax
sub ax, word [ebx + 0x28]
lea esi, [esp + 0x2c]
mov word [esp + 0x10], ax
mov ax, word [ebx + 0x2c]
mov word [ebp + 0x20], ax
mov cx, word [ebx + 0x30]
mov word [ebp + 0x22], cx
mov dx, word [ebx + 0x34]
mov word [ebp + 0x24], dx
mov eax, dword [ebx + 0x38]
mov dword [ebp + 0x26], eax
mov ecx, dword [ebx + 0x20]
mov edx, ecx
mov eax, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
mov eax, dword [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
je 0x4816a8
mov esi, dword [ebx + 0x28]
mov ecx, eax
and ecx, 0xffff
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x4816b2
mov ecx, dword [ebx + 0x28]
test ecx, ecx
jbe 0x4816c7
mov esi, dword [ebx + 0x50]
mov edx, dword [ebx + 0x20]
lea edi, [edx + ebp + 0x2e]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jbe 0x4816f2
mov edx, dword [ebx + 0x28]
and eax, 0xffff
mov esi, dword [ebx + 0x54]
add eax, edx
mov edx, dword [ebx + 0x20]
add eax, ebp
lea edi, [eax + edx + 0x2e]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x838]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push 0
mov eax, dword [edx + 0xa8]
push ecx
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x481737
cmp dword [esp + 0x28], esi
jne 0x481737
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x481b0f
jmp 0x481b08
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x481746
mov dword [ebx + 0x50], 0
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x481b8f
jmp 0x481b86
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48176f
mov dword [ebx + 0x50], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x481b8f
jmp 0x481b86
mov ecx, dword [esp + 0x834]
push esi
push edi
push eax
push ecx
push 0
call fcn.00483e80
add esp, 0x14
test eax, eax
je 0x4817c0
test ebp, ebp
je 0x4817a6
push ebp
call fcn.004ad74d
add esp, 4
mov eax, dword [esi + 0xa0]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
add esp, 0x81c
ret
mov edx, dword [esp + 0x20]
inc edx
push edx
call fcn.004adbfa
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x481b6f
mov esi, dword [esp + 0x18]
mov dword [ebp], 0x2014b50
mov ax, word [ebx]
test esi, esi
je 0x4817f8
mov word [ebp + 4], ax
mov cx, word [ebx + 2]
mov word [ebp + 6], cx
jmp 0x481833
xor ecx, ecx
cmp word [ebx + 6], 9
mov edx, eax
sete cl
add ecx, 0x14
and edx, 0xff00
or ecx, edx
cmp ax, 0x2d
jb 0x48181b
mov word [ebp + 4], cx
jmp 0x48181f
mov word [ebp + 4], ax
mov ax, word [ebx + 2]
cmp ax, 0x2d
jb 0x48182f
mov word [ebp + 6], cx
jmp 0x481833
mov word [ebp + 6], ax
mov ax, word [ebx + 4]
mov word [ebp + 8], ax
mov cx, word [ebx + 6]
mov word [ebp + 0xa], cx
mov edx, dword [ebx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0x10], eax
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x48185b
jmp dword [eax*4 + 0x481bd8]
lea ecx, [ebp + 0x18]
mov dword [ecx], 0xffffffff
jmp 0x4818f1
mov ecx, dword [ebx + 0x18]
lea edx, [ebp + 0x14]
mov dword [ebp + 0x18], ecx
mov dword [edx], 0xffffffff
jmp 0x4818f7
lea ecx, [ebp + 0x18]
lea edx, [ebp + 0x14]
mov dword [ecx], 0xffffffff
mov dword [edx], 0xffffffff
jmp 0x4818f7
mov ecx, dword [ebx + 0x18]
lea eax, [ebp + 0x2a]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x14], edx
mov dword [eax], 0xffffffff
jmp 0x4818fd
lea ecx, [ebp + 0x18]
lea eax, [ebp + 0x2a]
mov dword [ecx], 0xffffffff
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x14], edx
mov dword [eax], 0xffffffff
jmp 0x4818fd
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x18], ecx
jmp 0x4818d7
lea ecx, [ebp + 0x18]
mov dword [ecx], 0xffffffff
lea edx, [ebp + 0x14]
lea eax, [ebp + 0x2a]
mov dword [edx], 0xffffffff
mov dword [eax], 0xffffffff
jmp 0x4818fd
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 0x14], edx
mov eax, dword [ebx + 0x40]
mov dword [ebp + 0x2a], eax
mov cx, word [ebx + 0x20]
mov esi, dword [esp + 0x10]
mov word [ebp + 0x1c], cx
mov dx, word [ebx + 0x28]
add esi, edx
lea edi, [ebp + 0x2e]
mov ax, si
mov dword [esp + 0x10], esi
mov word [ebp + 0x1e], ax
sub ax, word [ebx + 0x28]
lea esi, [esp + 0x2c]
mov word [esp + 0x10], ax
mov ax, word [ebx + 0x2c]
mov word [ebp + 0x20], ax
mov cx, word [ebx + 0x30]
mov word [ebp + 0x22], cx
mov dx, word [ebx + 0x34]
mov word [ebp + 0x24], dx
mov eax, dword [ebx + 0x38]
mov dword [ebp + 0x26], eax
mov ecx, dword [ebx + 0x20]
mov edx, ecx
mov eax, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
mov eax, dword [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
je 0x481978
mov esi, dword [ebx + 0x28]
mov ecx, eax
and ecx, 0xffff
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x481982
mov ecx, dword [ebx + 0x28]
test ecx, ecx
jbe 0x481997
mov esi, dword [ebx + 0x50]
mov edx, dword [ebx + 0x20]
lea edi, [edx + ebp + 0x2e]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jbe 0x4819c2
mov edx, dword [ebx + 0x28]
and eax, 0xffff
mov esi, dword [ebx + 0x54]
add eax, edx
mov edx, dword [ebx + 0x20]
add eax, ebp
lea edi, [eax + edx + 0x2e]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x838]
mov ecx, dword [eax + 0x4ec4]
test ecx, ecx
je 0x481ad0
mov eax, dword [eax + 0x4ec0]
mov dword [esp + 0x18], 0
test eax, eax
jne 0x481a0b
mov ecx, dword [esp + 0x20]
xor edi, edi
push ecx
call fcn.004adbfa
mov edx, dword [esp + 0x83c]
add esp, 4
test eax, eax
mov dword [edx + 0x4ec0], eax
je 0x481a42
jmp 0x481a3a
push eax
call fcn.004b789b
mov esi, dword [esp + 0x83c]
mov edi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x4ec0]
add eax, edi
push eax
push ecx
call fcn.004b7607
add esp, 0xc
test eax, eax
je 0x481a42
mov dword [esi + 0x4ec0], eax
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x838]
mov eax, dword [esi + 0x4ec0]
test eax, eax
je 0x481a76
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x481a76
mov ecx, dword [esp + 0x20]
mov esi, ebp
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x481af7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x481a85
mov dword [ebx + 0x50], 0
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x481a9f
push eax
call fcn.004ad74d
add esp, 4
mov eax, dword [esi + 0x4ec0]
test eax, eax
je 0x481b8f
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x4ec0], 0
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret
mov ecx, dword [esp + 0x834]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
mov edx, dword [ecx]
push eax
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x481b4d
cmp dword [esp + 0x28], esi
jne 0x481b4d
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x481b0f
mov dword [ebx + 0x50], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x481b39
mov eax, dword [esp + 0x10]
push ecx
and eax, 0xffff
mov dword [ebx + 0x64], eax
call fcn.004ad74d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret
pop edi
pop esi
mov dword [ebx + 0x64], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x81c
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x481b5c
mov dword [ebx + 0x50], 0
push ebp
call fcn.004ad74d
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x481b8f
jmp 0x481b86
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x481b7e
mov dword [ebx + 0x50], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x481b8f
push eax
call fcn.004ad74d
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x81c
ret