Function at 0x4109b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, dword [0x42ba8c]
push ebx
push ebp
xor ebx, ebx
or ebp, 0xffffffff
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
je 0x410b16
mov eax, dword [0x42ba80]
mov edi, dword [eax]
add eax, 4
cmp edi, ebx
mov dword [0x42ba80], eax
je 0x410a99
push 2
push 5
call fcn.004039a0
add esp, 8
cmp eax, ebx
je 0x410a11
cmp byte [eax], 0
je 0x410a11
push ebx
push edi
call fcn.00404060
push eax
call fcn.00401f20
add esp, 0xc
mov eax, dword [0x42ba7c]
mov esi, dword [0x42ba78]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
fild qword [esp + 0x38]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
fild qword [esp + 0x38]
fmul qword [0x4234f8]
fdiv st(1)
call fcn.0041bab4
mov edx, dword [edi + 0xa]
mov dword [esp + 0x3c], ebx
add esi, edx
mov ebp, eax
mov dword [esp + 0x38], esi
mov dword [0x42ba78], esi
fild qword [esp + 0x38]
fmul qword [0x4234f8]
fdiv st(1)
call fcn.0041bab4
push eax
push ebp
push edi
fstp st(0)
call fcn.004105b0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x410a83
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push eax
call fcn.00401360
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov esi, dword [0x42bb38]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, ebx
mov dword [0x42bb74], ebx
mov dword [0x42ba8c], ebx
je 0x410ad3
push 1
push 5
call fcn.004039a0
add esp, 8
push eax
push 0x417
push esi
call edi
push eax
call fcn.004080c0
add esp, 8
mov esi, dword [0x42bab0]
cmp esi, ebx
je 0x410afb
push 3
push 5
call fcn.004039a0
add esp, 8
push eax
push 0x3e9
push esi
call edi
push eax
call fcn.004080c0
add esp, 8
cmp dword [0x42b740], ebx
jne 0x410b0d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push ebx
call fcn.00401ea0
add esp, 4
mov ecx, dword [0x42b6b0]
mov dword [esp + 0x10], ebp
mov byte [ecx], 0
mov ecx, dword [0x42b744]
mov eax, dword [0x42b6cc]
cmp ecx, ebx
je 0x410b44
lea eax, [eax + eax*4 + 5]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div ecx
mov dword [esp + 0x18], eax
mov edi, 0x100
mov eax, dword [0x42b6cc]
mov ecx, dword [0x42b744]
inc eax
cmp eax, ecx
mov dword [0x42b6cc], eax
jae 0x411668
mov eax, dword [0x42b6c8]
mov ebp, eax
push eax
mov dword [esp + 0x24], ebp
call fcn.00403be0
xor ebx, ebx
mov dword [0x42b6c8], eax
mov bx, word [ebp + 2]
push ebp
mov dword [esp + 0x3c], ebx
mov word [ebp + 2], 0
call fcn.0040ed60
mov ecx, dword [0x42b6b4]
mov dword [esp + 0x2c], eax
add esp, 8
cmp byte [ecx], 0
je 0x410b49
test bl, 2
je 0x410c7b
mov edx, dword [0x42b6ac]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410baf
mov ecx, dword [0x42b6b4]
mov edx, dword [0x42b6a8]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410bc5
mov edx, dword [0x42b6a8]
push 0x5c
push edx
call fcn.0041aa50
add esp, 8
test eax, eax
je 0x410be8
mov byte [eax + 1], 0
call fcn.00407e70
test eax, eax
je 0x410c1f
mov edx, dword [0x42b6cc]
mov ecx, dword [0x42b744]
cmp edx, ecx
mov eax, ebp
jge 0x410c1f
mov esi, dword [eax + 0x1a]
push eax
or esi, edi
mov dword [eax + 0x1a], esi
call fcn.00403be0
mov ecx, dword [0x42b744]
add esp, 4
inc edx
cmp edx, ecx
jl 0x410c03
mov eax, dword [0x42ba50]
test byte [eax], 0x10
je 0x410c7b
mov ecx, dword [0x42b6b4]
push 0
push ecx
call fcn.004010e0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x410c73
push 0xfffffffffffffff8
push esi
call fcn.00401240
lea edx, [esp + 0x48]
push 8
push edx
push esi
call fcn.00401160
push esi
call fcn.00401360
add esp, 0x18
cmp word [esp + 0x40], 0x7f7f
jne 0x410c73
test byte [esp + 0x42], 2
jne 0x410b49
mov eax, dword [0x42b6ac]
mov byte [eax], 0x30
mov eax, dword [0x42b6cc]
xor edx, edx
lea eax, [eax + eax*4 + 5]
lea eax, [eax + eax*4]
shl eax, 2
div dword [0x42b744]
mov ebx, eax
mov eax, dword [ebp + 0x1a]
test edi, eax
mov dword [esp + 0x28], ebx
jne 0x411613
test dword [0x42bb00], eax
je 0x411613
test ah, 2
jne 0x410e36
test al, 0x40
mov edi, 1
je 0x410cd4
mov ecx, dword [0x42b6b4]
push ecx
call fcn.004010a0
add esp, 4
test eax, eax
jne 0x410d33
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410d35
mov edx, dword [0x42b6b4]
push 0
push edx
mov dword [esp + 0x38], 0
call fcn.004010e0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x410d28
push esi
call fcn.00401260
mov ecx, dword [ebp + 0x12]
add esp, 4
cmp eax, ecx
jne 0x410d1f
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call fcn.004056e0
add esp, 0xc
push esi
call fcn.00401360
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x16]
cmp edx, eax
jne 0x410d35
xor edi, edi
test edi, edi
mov dword [0x42bb74], 0
je 0x410e49
mov eax, dword [0x42ba54]
test eax, eax
je 0x410b44
push 2
push 5
call fcn.004039a0
add esp, 8
test eax, eax
je 0x410d78
cmp byte [eax], 0
je 0x410d78
mov ecx, dword [0x42b6b4]
push ecx
call fcn.00401f20
add esp, 4
mov edx, dword [0x42b6b4]
push edx
call fcn.00402350
mov ecx, dword [0x42b6b4]
mov edx, dword [0x42b6b0]
add esp, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410d93
mov eax, dword [0x42b6b0]
push str..__A
push eax
call fcn.00402040
mov ecx, dword [0x42b6b0]
push 0
push ecx
call fcn.004010e0
add esp, 0x10
cmp eax, 0xffffffff
je 0x410e03
push eax
call fcn.00401360
mov esi, dword [0x42b6b0]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
push eax
mov dl, byte [ecx + esi - 1]
or ecx, 0xffffffff
inc dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + esi - 1], dl
mov eax, dword [0x42b6b0]
push eax
call fcn.004010e0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x410dc3
mov eax, dword [ebp + 0x1a]
test al, 0x20
je 0x410e54
push 0
push ebp
call fcn.00404060
mov ecx, dword [0x42bb7c]
mov edx, dword [0x42b6b0]
push eax
push ecx
push edx
call fcn.004108d0
add esp, 0x14
test eax, eax
je 0x411668
jmp 0x411416
mov eax, dword [0x42b6b4]
push eax
call fcn.00402350
add esp, 4
jmp 0x411613
mov word [ebp + 2], 0x1f5
jmp 0x411545
test eax, 0x200000
je 0x410e87
mov eax, dword [esp + 0x18]
mov esi, ebx
sub esi, eax
shr esi, 1
add esi, eax
push esi
push eax
push ebp
call fcn.004105b0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x411668
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x410e8b
mov ebx, dword [esp + 0x18]
mov eax, dword [0x42b6b0]
push eax
call fcn.00401130
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x410ebf
mov ecx, dword [0x42b6b0]
mov dword [0x42bb74], 0x11
push ecx
call fcn.0040aa10
jmp 0x411639
mov al, byte [esp + 0x34]
test al, 1
je 0x4111c3
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dx, word [ebp + 0x26]
mov edi, dword [edx*4 + 0x42ba10]
add edi, 4
test eax, eax
jle 0x410ef2
mov edx, eax
push edi
call fcn.00403be0
add esp, 4
dec edx
mov edi, eax
jne 0x410ee4
mov eax, dword [edi + 0x1a]
test al, 0x20
je 0x410f32
push esi
call fcn.00401360
push 0
push ebp
mov dword [esp + 0x1c], 0xffffffff
call fcn.00404060
mov ecx, dword [0x42b6b0]
push eax
mov eax, dword [0x42bb7c]
push eax
push ecx
call fcn.004108d0
add esp, 0x18
test eax, eax
je 0x41163c
jmp 0x4110d9
test eax, 0x200000
je 0x410f61
mov esi, dword [esp + 0x28]
sub esi, ebx
shr esi, 1
add esi, ebx
push esi
push ebx
push edi
call fcn.004105b0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x41163c
mov dword [esp + 0x18], esi
jmp 0x410f7a
mov edx, dword [edi + 6]
push edx
call fcn.0040bcf0
add esp, 4
mov dword [0x42bb74], eax
test eax, eax
jne 0x41163c
mov ecx, dword [0x42b720]
xor eax, eax
mov ax, word [ebp + 0x26]
xor edx, edx
cmp ecx, edx
mov eax, dword [eax*4 + 0x42b9d0]
mov ebx, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42b708], edx
mov dword [0x42b704], edx
mov byte [0x42b6e0], 0x39
je 0x41101f
cmp ax, dx
je 0x41101f
cmp ebx, 2
je 0x41101f
mov esi, 5
test ebx, ebx
mov dword [0x42b704], esi
jne 0x410feb
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42b704], esi
jle 0x410feb
mov esi, 0x1f
mov dword [0x42b704], esi
xor eax, eax
test esi, esi
jle 0x411014
mov ebp, ecx
sub ebp, 0x42b6e4
mov bl, byte [eax + ebp + 0x42b6e4]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42b6e4], bl
inc eax
cmp eax, esi
jl 0x410ff9
mov ebp, dword [esp + 0x20]
mov byte [esi + 0x42b6e4], 0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x41102d
mov eax, dword [0x426040]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
mov edx, dword [edi + 0xa]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
push ebx
call fcn.004034a0
mov esi, eax
mov eax, dword [0x42baf0]
add esp, 0x14
test esi, esi
je 0x411088
cmp eax, 2
je 0x411628
push 0
push edi
call fcn.00404060
add esp, 8
push eax
push 0
push edi
call fcn.00404060
add esp, 8
push eax
push esi
call fcn.0040bef0
add esp, 0xc
mov dword [0x42bb74], eax
jmp 0x411628
cmp eax, 2
je 0x411628
mov eax, dword [esp + 0x14]
or esi, 0xffffffff
cmp eax, esi
je 0x4110a9
push eax
call fcn.00401360
add esp, 4
mov dword [esp + 0x14], esi
push ebx
call fcn.00401360
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x12]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], esi
jne 0x4110cc
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x16]
cmp ecx, eax
je 0x4110d9
call fcn.0040f470
test eax, eax
je 0x411628
mov eax, dword [0x42ba50]
mov ecx, dword [0x42b720]
xor edx, edx
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
cmp ecx, edx
mov dword [0x42b708], edx
mov dword [0x42b704], edx
mov byte [0x42b6e0], 0x39
je 0x411176
test ax, ax
je 0x411176
cmp edi, 2
je 0x411176
mov esi, 5
test edi, edi
mov dword [0x42b704], esi
jne 0x411142
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42b704], esi
jle 0x411142
mov esi, 0x1f
mov dword [0x42b704], esi
xor eax, eax
test esi, esi
jle 0x41116b
mov edi, ecx
sub edi, 0x42b6e4
mov bl, byte [edi + eax + 0x42b6e4]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42b6e4], bl
inc eax
cmp eax, esi
jl 0x411150
mov ebp, dword [esp + 0x20]
mov byte [esi + 0x42b6e4], 0
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x41118d
mov edi, dword [0x426040]
mov dword [0x426040], esi
jmp 0x411191
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42b6b0]
push edx
push eax
push ecx
push ebp
call fcn.0040f4f0
add esp, 0x10
cmp esi, 0xffffffff
je 0x4111b6
mov dword [0x426040], edi
test eax, eax
je 0x411628
jmp 0x411416
test al, 2
je 0x41128e
mov ecx, dword [0x42ba5c]
test ecx, ecx
je 0x411416
mov eax, dword [0x42ba58]
test eax, eax
je 0x411416
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004011a0
add esp, 0xc
mov dword [0x42bb74], eax
test eax, eax
jne 0x41163c
mov eax, dword [ebp + 6]
push eax
call fcn.0040bcf0
add esp, 4
mov dword [0x42bb74], eax
test eax, eax
jne 0x41163c
mov edx, dword [0x426040]
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov byte [0x42b6e0], 0x39
mov dword [0x42b708], ebx
mov dword [0x42b704], ebx
mov ecx, dword [ebp + 0xa]
push ebx
push ebx
push ecx
push edx
push edi
call fcn.004034a0
mov esi, eax
mov eax, dword [0x42baf0]
add esp, 0x14
cmp esi, ebx
je 0x41126f
cmp eax, 2
je 0x41163c
push ebx
push ebp
call fcn.00404060
add esp, 8
push eax
push ebx
jmp 0x41139b
cmp eax, 2
je 0x41163c
push edi
call fcn.00401360
add esp, 4
mov dword [esp + 0x10], 0xffffffff
jmp 0x411416
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4112ae
mov eax, dword [ebp + 6]
push eax
call fcn.0040bcf0
add esp, 4
mov dword [0x42bb74], eax
test eax, eax
jne 0x41164e
mov esi, dword [0x42b720]
xor ecx, ecx
mov cx, word [ebp + 0x26]
xor ebx, ebx
cmp esi, ebx
mov eax, dword [ecx*4 + 0x42b9d0]
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42b708], ebx
mov dword [0x42b704], ebx
mov byte [0x42b6e0], 0x39
je 0x41134f
cmp ax, bx
je 0x41134f
cmp edi, 2
je 0x41134f
xor edx, edx
mov ecx, 5
cmp edi, ebx
mov dword [0x42b704], ecx
jne 0x41131f
xor ecx, ecx
mov edx, 1
mov cl, byte [esi]
xor ecx, 0x6a
inc esi
cmp ecx, 0x1f
mov dword [0x42b704], ecx
jle 0x41131f
mov ecx, 0x1f
mov dword [0x42b704], ecx
xor eax, eax
cmp ecx, ebx
jle 0x411344
sub esi, 0x42b6e4
mov bl, dl
add bl, al
xor bl, byte [esi + eax + 0x42b6e4]
xor bl, 0x6a
mov byte [eax + 0x42b6e4], bl
inc eax
cmp eax, ecx
jl 0x41132b
mov ebp, dword [esp + 0x20]
mov byte [ecx + 0x42b6e4], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x41135d
mov eax, dword [0x426040]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0xa]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push edi
call fcn.004034a0
mov esi, eax
mov eax, dword [0x42baf0]
add esp, 0x14
test esi, esi
je 0x4113b8
cmp eax, 2
je 0x41163c
push 0
push ebp
call fcn.00404060
add esp, 8
push eax
push 0
push ebp
call fcn.00404060
add esp, 8
push eax
push esi
call fcn.0040bef0
add esp, 0xc
mov dword [0x42bb74], eax
jmp 0x41163c
cmp eax, 2
je 0x41163c
mov eax, dword [ebp + 0x1a]
test al, 8
je 0x4113e2
test al, 6
lea eax, [ebp + 0x40]
jne 0x4113d2
lea eax, [ebp + 0x2c]
lea ecx, [eax + 0x10]
lea edx, [eax + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.00401360
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x12]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], 0xffffffff
jne 0x411409
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x16]
cmp ecx, eax
je 0x411416
call fcn.0040f470
test eax, eax
je 0x41163c
cmp dword [ebp + 0x22], 3
jne 0x411456
mov edx, dword [0x42b6b4]
push 0
push edx
call fcn.004010e0
add esp, 8
cmp eax, 0xffffffff
je 0x411456
push eax
call fcn.00401360
mov eax, dword [0x42b6b4]
push eax
call fcn.00402b10
mov ecx, dword [0x42b6b4]
push ecx
call fcn.00401370
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x22], 2
je 0x411511
mov eax, dword [ebp + 0x1a]
mov esi, 0x1000
test esi, eax
jne 0x411511
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4114ab
mov edx, dword [0x42b6b0]
mov eax, dword [0x42b6b4]
push edx
push eax
call fcn.00412d60
add esp, 8
test eax, eax
je 0x4114a3
mov dword [0x42bb6c], 1
mov word [ebp + 2], 0x1f4
jmp 0x4114bb
mov word [ebp + 2], 0x1b
jmp 0x4114bb
mov ecx, dword [0x42b6b0]
push ecx
push ebp
call fcn.0040f060
add esp, 8
mov ax, word [ebp + 2]
cmp ax, 0x1b
jne 0x4114e0
mov edx, dword [0x42b6b4]
mov dword [0x42bb74], 0x16
push edx
call fcn.0040aa10
jmp 0x411625
test dword [ebp + 0x1e], esi
je 0x411545
cmp ax, 0x1f4
push 0x100
jne 0x411500
mov eax, dword [0x42b6b0]
push eax
call fcn.0041a8bc
add esp, 8
jmp 0x411545
mov ecx, dword [0x42b6b4]
push ecx
call fcn.0041a8bc
add esp, 8
jmp 0x411545
mov edi, dword [0x42b6b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0041aba0
mov dword [ebp + 0xe], eax
mov ecx, dword [0x42b6b0]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x411535
mov word [ebp + 2], 0x1f6
mov eax, dword [0x42bb74]
test eax, eax
jne 0x411628
mov edx, dword [0x42b6b0]
mov al, byte [esp + 0x34]
test al, 2
mov byte [edx], 0
je 0x411569
mov word [ebp + 2], 0
mov eax, dword [ebp + 0x22]
test eax, eax
je 0x411599
mov eax, dword [ebp + 0x1a]
test ah, 4
je 0x411599
mov ax, word [ebp + 2]
cmp ax, 0x17
je 0x411594
cmp ax, 0x19
je 0x411594
cmp ax, 0x1f5
je 0x411594
cmp ax, 0x1f4
jne 0x411599
call fcn.0040fff0
cmp dword [ebp + 0x22], 3
jne 0x4115bd
mov ax, word [ebp + 2]
cmp ax, 0x17
je 0x4115af
cmp ax, 0x19
jne 0x4115bd
mov eax, dword [0x42b6b4]
push eax
call fcn.00402800
add esp, 4
mov eax, dword [ebp + 0x1a]
test ah, 0x10
je 0x4115f5
mov eax, dword [0x42baa4]
test eax, eax
je 0x4115d6
cmp word [ebp + 2], 0x1f5
je 0x4115ec
mov ax, word [ebp + 2]
cmp ax, 0x17
je 0x4115ec
cmp ax, 0x19
je 0x4115ec
cmp ax, 0x1f4
jne 0x4115f5
push ebp
call fcn.0040e1d0
add esp, 4
mov eax, dword [ebp + 0x1a]
test ah, 8
je 0x411603
mov dword [0x42b6dc], ebp
test byte [ebp + 0x1a], 0x10
je 0x411613
mov dword [0x42babc], 1
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00401ea0
mov dword [esp + 0x30], 1
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x41163c
mov edx, eax
push edx
call fcn.00401360
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x41164e
push eax
call fcn.00401360
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x411660
push eax
call fcn.00401360
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x41167b
mov eax, dword [0x42b6b0]
cmp byte [eax], 0
je 0x41167b
push eax
call fcn.0041afd0
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret